test-insmod: show the path libkmod is using

This commit is contained in:
Lucas De Marchi 2011-12-08 10:57:50 -02:00
parent 97a3ea9e9d
commit ac9f8761fe
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
printf("Trying insmod '%s' (%s)\n", kmod_module_get_name(mod), path);
printf("Trying insmod '%s' (%s)\n", kmod_module_get_name(mod),
kmod_module_get_path(mod));
err = kmod_module_insert_module(mod, 0);
if (err < 0) {
fprintf(stderr, "%s\n", strerror(-err));