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:
Baptiste Daroussin 2014-01-09 15:34:23 +00:00
parent 0818ec92ee
commit 945508e42a

View File

@ -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)