summaryrefslogtreecommitdiff
path: root/kernel/driver.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-06 18:30:45 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-06 18:30:45 +0100
commitf2f3e2cb1971e7b471955c104d88ff470f3ba5dc (patch)
tree85442a5063b0704d8c4f8f2a3c76c325003dfedd /kernel/driver.cc
parentb380af9d6d49ad4a7a944eb02abd3fa222f383a3 (diff)
Improved error message on failed module load
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r--kernel/driver.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index 8ba0283f..0da5f68c 100644
--- a/kernel/driver.cc
+++ b/kernel/driver.cc
@@ -238,7 +238,7 @@ int main(int argc, char **argv)
case 'm':
loaded_modules.push_back(dlopen(optarg, RTLD_LAZY|RTLD_GLOBAL));
if (loaded_modules.back() == NULL) {
- fprintf(stderr, "Can't load module `%s'!\n", optarg);
+ fprintf(stderr, "Can't load module `%s': %s\n", optarg, dlerror());
exit(1);
}
break;