X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpath%2Fpath.c;fp=src%2Fpath%2Fpath.c;h=65016cda3e18a18521fe7b3214bec4dc9c1e63a2;hb=da927ba997d68401563b927f92e6e40e021a8e5c;hp=e4d8d1d53ca27d230a75f26c5a38fdf0587891c5;hpb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14;p=elogind.git diff --git a/src/path/path.c b/src/path/path.c index e4d8d1d53..65016cda3 100644 --- a/src/path/path.c +++ b/src/path/path.c @@ -88,7 +88,7 @@ static int list_homes(void) { if (q == -ENXIO) continue; if (q < 0) { - log_error_errno(-r, "Failed to query %s: %m", path_table[i]); + log_error_errno(r, "Failed to query %s: %m", path_table[i]); r = q; continue; } @@ -109,7 +109,7 @@ static int print_home(const char *n) { r = sd_path_home(i, arg_suffix, &p); if (r < 0) { - log_error_errno(-r, "Failed to query %s: %m", n); + log_error_errno(r, "Failed to query %s: %m", n); return r; }