mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 15:22:34 -04:00
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
1 changed files with 8 additions and 2 deletions
|
|
@ -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 a new issue