mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-22 23:36:40 +07: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