chiark / gitweb /
bus: fix hello ioctl buffer size calculation
[elogind.git] / src / udev / udev-builtin-kmod.c
index 17aca2944d5879c4fc75d7f2d1985ad57db9ded5..63dbf30727249394a207899c979298dee76a0f39 100644 (file)
@@ -64,6 +64,7 @@ static int load_module(struct udev *udev, const char *alias)
         return err;
 }
 
+_printf_(6,0)
 static void udev_kmod_log(void *data, int priority, const char *file, int line,
                           const char *fn, const char *format, va_list args)
 {
@@ -78,7 +79,7 @@ static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool te
         if (!ctx)
                 return 0;
 
-        if (argc < 3 || strcmp(argv[1], "load")) {
+        if (argc < 3 || !streq(argv[1], "load")) {
                 log_error("expect: %s load <module>\n", argv[0]);
                 return EXIT_FAILURE;
         }