From da927ba997d68401563b927f92e6e40e021a8e5c Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Fri, 28 Nov 2014 13:19:16 +0100 Subject: treewide: no need to negate errno for log_*_errno() It corrrectly handles both positive and negative errno values. --- src/core/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/path.c') diff --git a/src/core/path.c b/src/core/path.c index cd7478f1fc..ca586d9616 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -250,7 +250,7 @@ static void path_spec_mkdir(PathSpec *s, mode_t mode) { r = mkdir_p_label(s->path, mode); if (r < 0) - log_warning_errno(-r, "mkdir(%s) failed: %m", s->path); + log_warning_errno(r, "mkdir(%s) failed: %m", s->path); } static void path_spec_dump(PathSpec *s, FILE *f, const char *prefix) { -- cgit v1.2.3-54-g00ecf