X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-button.c;h=d2cc43084538f33e42ab2a9d842fccf64fe9538f;hp=e380dc0611b75877b2547c91a9110c77539fac16;hb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;hpb=e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1e diff --git a/src/login/logind-button.c b/src/login/logind-button.c index e380dc061..d2cc43084 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -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; }