mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
udev-builtin-kmod: adjust logging
I guess the one about "execute" was from the time when modprobe was called directly.
This commit is contained in:
parent
81d7c69657
commit
4fdf69078a
@ -29,14 +29,12 @@ static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool te
|
||||
return 0;
|
||||
|
||||
if (argc < 3 || !streq(argv[1], "load")) {
|
||||
log_error("expect: %s load <module>", argv[0]);
|
||||
log_error("%s: expected: load <module>", argv[0]);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
for (i = 2; argv[i]; i++) {
|
||||
log_debug("Execute '%s' '%s'", argv[1], argv[i]);
|
||||
for (i = 2; argv[i]; i++)
|
||||
(void) module_load_and_warn(ctx, argv[i], false);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user