mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
MFprojects/zfsd:
Hide warning behind bootverbose. Average user has nothing to do about it.
This commit is contained in:
parent
dc0aa406db
commit
20654f4ef4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235899
@ -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