Import error message shown to the user when trying to load a module that is
already loaded or compiled withing the kernel MFC after: 1 week
This commit is contained in:
parent
0818ec92ee
commit
945508e42a
@ -181,8 +181,14 @@ main(int argc, char** argv)
|
||||
printf("%s is already "
|
||||
"loaded\n", argv[0]);
|
||||
} else {
|
||||
warn("can't load %s", argv[0]);
|
||||
errors++;
|
||||
if (errno == EEXIST) {
|
||||
warnx("can't load %s: module "
|
||||
"already loaded or "
|
||||
"in kernel", argv[0]);
|
||||
} else {
|
||||
warn("can't load %s", argv[0]);
|
||||
errors++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (verbose)
|
||||
|
Loading…
Reference in New Issue
Block a user