chiark / gitweb /
udevadm: log message if udevadm link is used
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 9 Sep 2008 12:48:42 +0000 (14:48 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 9 Sep 2008 12:48:42 +0000 (14:48 +0200)
udev/udevadm-control.c
udev/udevadm.c

index 8e319be9460855fe0c28f92086b97ea04dbd7e6b..c710811ed4995636daa8d49f31e5c65d69b2a045 100644 (file)
@@ -89,10 +89,10 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
                        break;
 
                if (option > 255) {
-                       info(udev, "udevadm control expects commands without underscore, "
-                           "this will stop working in a future release\n");
                        fprintf(stderr, "udevadm control expects commands without underscore, "
                                "this will stop working in a future release\n");
+                       err(udev, "udevadm control expects commands without underscore, "
+                           "this will stop working in a future release\n");
                }
 
                switch (option) {
index bfa704ef21754b9472c4bd297c9e7002a8821590..a4bcba603fd877f20021be8edca19e28386437f5 100644 (file)
@@ -167,8 +167,8 @@ int main(int argc, char *argv[])
                                prog[len] = '\0';
                                fprintf(stderr, "the program '%s' called '%s', it should use 'udevadm %s <options>', "
                                       "this will stop working in a future release\n", prog, argv[0], command);
-                               info(udev, "the program '%s' called '%s', it should use 'udevadm %s <options>', "
-                                    "this will stop working in a future release\n", prog, argv[0], command);
+                               err(udev, "the program '%s' called '%s', it should use 'udevadm %s <options>', "
+                                   "this will stop working in a future release\n", prog, argv[0], command);
                        }
                        rc = run_command(udev, &cmds[i], argc, argv);
                        goto out;