diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2009-07-21 14:18:25 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2009-07-21 14:18:25 +0000 |
commit | 2620dac06ec3949e6c517cf5e2dcc10bd0a5a85d (patch) | |
tree | c49c131b80170766b93ea7ca56b98805acc01550 /sys/kern | |
parent | cbc212df17ec09c15616d874d1941f88e7a7e284 (diff) | |
download | FreeBSD-src-2620dac06ec3949e6c517cf5e2dcc10bd0a5a85d.zip FreeBSD-src-2620dac06ec3949e6c517cf5e2dcc10bd0a5a85d.tar.gz |
Improve the printf message when a module failed to load. This gives the
user some clue about the possibility of a __FreeBSD_version mismatch.
Discussed with: rwatson, jhb
Approved by: re (kib)
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_linker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index e0c50fe3..73cee6c 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -2079,8 +2079,8 @@ linker_load_dependencies(linker_file_t lf) } error = linker_load_module(NULL, modname, lf, verinfo, NULL); if (error) { - printf("KLD %s: depends on %s - not available\n", - lf->filename, modname); + printf("KLD %s: depends on %s - not available or" + " version mismatch\n", lf->filename, modname); break; } } |