summaryrefslogtreecommitdiff
path: root/udev/udevadm-control.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2009-09-14 13:56:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-09-14 13:56:38 +0200
commitbbfeee28fc00642a01bf3f9c24e6c0e942d4adf8 (patch)
tree3b558fbc339f76005eb3b6f8fb9184b35e7966c0 /udev/udevadm-control.c
parentb6a2637524e4b94ba51abcf5ee42f3676c9755ed (diff)
udevadm: print all messages to stderr with priority higher or equal than LOG_ERR
It is needed to prevent errors in udev from going unnoticed (e.g. when udevd is not running).
Diffstat (limited to 'udev/udevadm-control.c')
-rw-r--r--udev/udevadm-control.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/udev/udevadm-control.c b/udev/udevadm-control.c
index 3eb03d8b04..42818d9db7 100644
--- a/udev/udevadm-control.c
+++ b/udev/udevadm-control.c
@@ -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");
}
@@ -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: