Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2018 06:57:12 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329439 - head/sbin/devmatch
Message-ID:  <201802170657.w1H6vCVP027492@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sat Feb 17 06:57:12 2018
New Revision: 329439
URL: https://svnweb.freebsd.org/changeset/base/329439

Log:
  Warn when we encounter unknown PNP field specifiers.
  
  The 'T' field went unimplemented for months due to a lack of warning.
  Add a warnings to detect mistakes sooner.
  
  Sponsored by: Netflix

Modified:
  head/sbin/devmatch/devmatch.c

Modified: head/sbin/devmatch/devmatch.c
==============================================================================
--- head/sbin/devmatch/devmatch.c	Sat Feb 17 06:57:08 2018	(r329438)
+++ head/sbin/devmatch/devmatch.c	Sat Feb 17 06:57:12 2018	(r329439)
@@ -314,6 +314,7 @@ search_hints(const char *bus, const char *dev, const c
 							notme++;
 						break;
 					default:
+						fprintf(stderr, "Unknown field type %c\n:", *cp);
 						break;
 					}
 					bit++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802170657.w1H6vCVP027492>