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