[PATCH] modutils.c: update rmmod message for ENOENT error
Maxin B. John
maxin.john at intel.com
Thu Oct 22 10:51:48 UTC 2015
When we try to remove a non-existing module:
$ rmmod nonexisting
rmmod: can't unload 'nonexisting': unknown symbol in module, or unknown
parameter
man page of "delete_module" says:
ENOENT: No module by that name exists.
Update the inconsistent message.
Signed-off-by: Maxin B. John <maxin.john at intel.com>
---
modutils/modutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modutils/modutils.c b/modutils/modutils.c
index 84300d9..3acd632 100644
--- a/modutils/modutils.c
+++ b/modutils/modutils.c
@@ -198,7 +198,7 @@ const char* FAST_FUNC moderror(int err)
case ENOEXEC:
return "invalid module format";
case ENOENT:
- return "unknown symbol in module, or unknown parameter";
+ return "no module by that name exists";
case ESRCH:
return "module has wrong symbol version";
case ENOSYS:
--
2.4.0
More information about the busybox
mailing list