svn commit: r253359 - stable/9/sys/kern

Alexander Motin mav at FreeBSD.org
Mon Jul 15 11:45:58 UTC 2013


Author: mav
Date: Mon Jul 15 11:45:58 2013
New Revision: 253359
URL: http://svnweb.freebsd.org/changeset/base/253359

Log:
  MFC r235899:
  Hide warning behind bootverbose. Average user has nothing to do about it.
  
  Approved by:	re (marius)

Modified:
  stable/9/sys/kern/kern_conf.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_conf.c
==============================================================================
--- stable/9/sys/kern/kern_conf.c	Mon Jul 15 09:02:57 2013	(r253358)
+++ stable/9/sys/kern/kern_conf.c	Mon Jul 15 11:45:58 2013	(r253359)
@@ -992,9 +992,10 @@ make_dev_physpath_alias(int flags, struc
 	max_parentpath_len = SPECNAMELEN - physpath_len - /*/*/1;
 	parentpath_len = strlen(pdev->si_name);
 	if (max_parentpath_len < parentpath_len) {
-		printf("make_dev_physpath_alias: WARNING - Unable to alias %s "
-		    "to %s/%s - path too long\n",
-		    pdev->si_name, physpath, pdev->si_name);
+		if (bootverbose)
+			printf("WARNING: Unable to alias %s "
+			    "to %s/%s - path too long\n",
+			    pdev->si_name, physpath, pdev->si_name);
 		ret = ENAMETOOLONG;
 		goto out;
 	}


More information about the svn-src-all mailing list