summaryrefslogtreecommitdiffstats
path: root/src/udev/cdrom_id
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-07-26 12:03:25 +0200
committerKay Sievers <kay@vrfy.org>2012-07-26 12:03:25 +0200
commite239cd8de06a62c9adc71ff1329a1ce76e8735a5 (patch)
tree58baa90662463e47724ed592c5dbdbfb5effa281 /src/udev/cdrom_id
parentlog.h: new log_oom() -> int -ENOMEM, use it (diff)
downloadsystemd-e239cd8de06a62c9adc71ff1329a1ce76e8735a5.tar.xz
systemd-e239cd8de06a62c9adc71ff1329a1ce76e8735a5.zip
udev: cdrom_id, accelerometer - enable debug output for --debug
Diffstat (limited to 'src/udev/cdrom_id')
-rw-r--r--src/udev/cdrom_id/cdrom_id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c
index 74c5165e2a..870dfc89fe 100644
--- a/src/udev/cdrom_id/cdrom_id.c
+++ b/src/udev/cdrom_id/cdrom_id.c
@@ -902,8 +902,8 @@ int main(int argc, char *argv[])
break;
case 'd':
debug = true;
- if (udev_get_log_priority(udev) < LOG_INFO)
- udev_set_log_priority(udev, LOG_INFO);
+ log_set_max_level(LOG_DEBUG);
+ udev_set_log_priority(udev, LOG_DEBUG);
break;
case 'h':
printf("Usage: cdrom_id [options] <device>\n"