1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

udev: cdrom_id, accelerometer - enable debug output for --debug

This commit is contained in:
Kay Sievers 2012-07-26 12:03:25 +02:00
parent 0d0f0c50d3
commit e239cd8de0
2 changed files with 4 additions and 4 deletions

View File

@ -277,8 +277,8 @@ int main (int argc, char** argv)
switch (option) {
case 'd':
debug = 1;
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':
help();

View File

@ -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"