X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fpath.c;h=f15c9214efb35c73fd5cdea904dc802d5fc783cd;hp=1d4aa2174a06fa20246a6f8e2764045d06448cd5;hb=8ea913b2eaadbd92e069ea6b71cc5f5df409decf;hpb=f975e971accc4d50c73ae53167db3df7a7099cf2 diff --git a/src/path.c b/src/path.c index 1d4aa2174..f15c9214e 100644 --- a/src/path.c +++ b/src/path.c @@ -563,7 +563,7 @@ static void path_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { assert(l > 0); if (!(buf = malloc(l))) { - log_error("Failed to allocate buffer: %s", strerror(-ENOMEM)); + log_error("Failed to allocate buffer: %s", strerror(ENOMEM)); goto fail; }