Use uprintf instead of printf for the reason why a kernel module can not

be loaded.  This way, the administrator can get response immediately from
the shell session rather than relying on dmesg.

MFC after:	1 month
This commit is contained in:
Xin LI 2012-02-20 01:05:17 +00:00
parent d75a2818b7
commit 5bfbb59851

View File

@ -2115,7 +2115,7 @@ 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 or"
uprintf("KLD %s: depends on %s - not available or"
" version mismatch\n", lf->filename, modname);
break;
}