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:
parent
0d0f0c50d3
commit
e239cd8de0
@ -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();
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user