chiark / gitweb /
treewide: auto-convert the simple cases to log_*_errno()
[elogind.git] / src / login / logind-button.c
index e380dc0611b75877b2547c91a9110c77539fac16..d2cc43084538f33e42ab2a9d842fccf64fe9538f 100644 (file)
@@ -263,7 +263,7 @@ int button_open(Button *b) {
 
         r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b);
         if (r < 0) {
-                log_error("Failed to add button event: %s", strerror(-r));
+                log_error_errno(-r, "Failed to add button event: %m");
                 goto fail;
         }