[systemd-commits] 2 commits - src/tty-ask-password-agent src/udev

Lennart Poettering lennart at kemper.freedesktop.org
Sat May 31 23:09:33 PDT 2014


 src/tty-ask-password-agent/tty-ask-password-agent.c |    2 +-
 src/udev/udev-builtin-keyboard.c                    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 267b3e41df5a2181f2911433539f81de2fa1511a
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date:   Thu May 29 14:17:37 2014 -0400

    tty-ask-password-agent: Do tell what directory we failed to open

diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c
index 3203474..55a2215 100644
--- a/src/tty-ask-password-agent/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent/tty-ask-password-agent.c
@@ -501,7 +501,7 @@ static int show_passwords(void) {
                 if (errno == ENOENT)
                         return 0;
 
-                log_error("opendir(): %m");
+                log_error("opendir(/run/systemd/ask-password): %m");
                 return -errno;
         }
 

commit a52ec8ed881537627869afa8f0486db7e20ce2db
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date:   Fri May 30 13:16:56 2014 -0400

    udev-builtin-keyboard: do tell on which device EVIOCSKEYCODE failed.
    
    I am getting
    
    "Error calling EVIOCSKEYCODE (scan code 0xc022d, key code 418): Invalid
    argument", the error message does not tell on which specific device the
    problem is, add that info.

diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
index 614e44e..9b66bfd 100644
--- a/src/udev/udev-builtin-keyboard.c
+++ b/src/udev/udev-builtin-keyboard.c
@@ -143,7 +143,7 @@ static int builtin_keyboard(struct udev_device *dev, int argc, char *argv[], boo
                         log_debug("keyboard: mapping scan code %d (0x%x) to key code %d (0x%x)",
                                   map[i].scan, map[i].scan, map[i].key, map[i].key);
                         if (ioctl(fd, EVIOCSKEYCODE, &map[i]) < 0)
-                                log_error("Error calling EVIOCSKEYCODE (scan code 0x%x, key code %d): %m", map[i].scan, map[i].key);
+                                log_error("Error calling EVIOCSKEYCODE on device node '%s' (scan code 0x%x, key code %d): %m", node, map[i].scan, map[i].key);
                 }
 
                 /* install list of force-release codes */



More information about the systemd-commits mailing list