From 2620dac06ec3949e6c517cf5e2dcc10bd0a5a85d Mon Sep 17 00:00:00 2001 From: rpaulo Date: Tue, 21 Jul 2009 14:18:25 +0000 Subject: [PATCH] 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) --- sys/kern/kern_linker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index e0c50fe35cc9..73cee6c15b00 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; } }