MFprojects/zfsd:
Hide warning behind bootverbose. Average user has nothing to do about it.
This commit is contained in:
parent
56ef4027fe
commit
8f3c5562d6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user