summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r--sys/kern/kern_conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 461f008..31f4683 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -993,9 +993,10 @@ make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
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;
}
OpenPOWER on IntegriCloud