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)
This commit is contained in:
Rui Paulo 2009-07-21 14:18:25 +00:00
parent 67b87e4429
commit 5b4d5f9ee2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195803

View File

@ -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;
}
}