[systemd-commits] src/udev

Kay Sievers kay at kemper.freedesktop.org
Thu Jul 26 03:04:02 PDT 2012


 src/udev/accelerometer/accelerometer.c |    4 ++--
 src/udev/cdrom_id/cdrom_id.c           |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e239cd8de06a62c9adc71ff1329a1ce76e8735a5
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu Jul 26 12:03:25 2012 +0200

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

diff --git a/src/udev/accelerometer/accelerometer.c b/src/udev/accelerometer/accelerometer.c
index 08be363..b8ed7b8 100644
--- a/src/udev/accelerometer/accelerometer.c
+++ b/src/udev/accelerometer/accelerometer.c
@@ -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();
diff --git a/src/udev/cdrom_id/cdrom_id.c b/src/udev/cdrom_id/cdrom_id.c
index 74c5165..870dfc8 100644
--- a/src/udev/cdrom_id/cdrom_id.c
+++ b/src/udev/cdrom_id/cdrom_id.c
@@ -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"



More information about the systemd-commits mailing list