Fix the last case when kldload(8) wasn't printing the name of the module

that failed to load.
This commit is contained in:
Gleb Smirnoff 2017-02-18 18:57:29 +00:00
parent da1b1e8eca
commit dc3c93a954

View File

@ -177,9 +177,9 @@ main(int argc, char** argv)
break; break;
case ENOEXEC: case ENOEXEC:
warnx("an error occurred while " warnx("an error occurred while "
"loading the module. " "loading module %s. "
"Please check dmesg(8) for " "Please check dmesg(8) for "
"more details."); "more details.", argv[0]);
break; break;
default: default:
warn("can't load %s", argv[0]); warn("can't load %s", argv[0]);