1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +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) { switch (option) {
case 'd': case 'd':
debug = 1; debug = 1;
if (udev_get_log_priority(udev) < LOG_INFO) log_set_max_level(LOG_DEBUG);
udev_set_log_priority(udev, LOG_INFO); udev_set_log_priority(udev, LOG_DEBUG);
break; break;
case 'h': case 'h':
help(); help();

View File

@ -902,8 +902,8 @@ int main(int argc, char *argv[])
break; break;
case 'd': case 'd':
debug = true; debug = true;
if (udev_get_log_priority(udev) < LOG_INFO) log_set_max_level(LOG_DEBUG);
udev_set_log_priority(udev, LOG_INFO); udev_set_log_priority(udev, LOG_DEBUG);
break; break;
case 'h': case 'h':
printf("Usage: cdrom_id [options] <device>\n" printf("Usage: cdrom_id [options] <device>\n"