chiark / gitweb /
udevadm: print all messages to stderr with priority higher or equal than LOG_ERR
[elogind.git] / udev / udevadm-control.c
index 3fe41977c5b1640d1ad9651dee645104005f4469..42818d9db74e4fcac941605dbb93ecc5f2b1ebd6 100644 (file)
@@ -81,8 +81,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
                        break;
 
                if (option > 255) {
-                       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");
                }
@@ -115,7 +113,7 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
                        break;
                case 'p':
                        if (strchr(optarg, '=') == NULL) {
-                               fprintf(stderr, "expect <KEY>=<valaue> instead of '%s'\n", optarg);
+                               fprintf(stderr, "expect <KEY>=<value> instead of '%s'\n", optarg);
                                goto exit;
                        }
                        udev_ctrl_send_set_env(uctrl, optarg);
@@ -144,8 +142,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
        if (argv[optind] != NULL) {
                const char *arg = argv[optind];
 
-               fprintf(stderr, "udevadm control commands requires the --<command> format, "
-                       "this will stop working in a future release\n");
                err(udev, "udevadm control commands requires the --<command> format, "
                    "this will stop working in a future release\n");
 
@@ -177,7 +173,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
        }
 
        if (rc != 0) {
-               fprintf(stderr, "unrecognized command\n");
                err(udev, "unrecognized command\n");
        }
 exit: