MFprojects/zfsd:

Hide warning behind bootverbose. Average user has nothing to do about it.
This commit is contained in:
mav 2012-05-24 11:24:44 +00:00
parent 56ef4027fe
commit 8f3c5562d6

View File

@ -993,9 +993,10 @@ make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
max_parentpath_len = SPECNAMELEN - physpath_len - /*/*/1; max_parentpath_len = SPECNAMELEN - physpath_len - /*/*/1;
parentpath_len = strlen(pdev->si_name); parentpath_len = strlen(pdev->si_name);
if (max_parentpath_len < parentpath_len) { if (max_parentpath_len < parentpath_len) {
printf("make_dev_physpath_alias: WARNING - Unable to alias %s " if (bootverbose)
"to %s/%s - path too long\n", printf("WARNING: Unable to alias %s "
pdev->si_name, physpath, pdev->si_name); "to %s/%s - path too long\n",
pdev->si_name, physpath, pdev->si_name);
ret = ENAMETOOLONG; ret = ENAMETOOLONG;
goto out; goto out;
} }