diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-05 20:18:47 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 88d3324bea45714ea127abcf2d73504fd0132b0f (patch) | |
tree | 8fa04a6ad592753a90c6571d252dea37f38896bd /src/shared | |
parent | 541584965693a7e8d90712ad31ccc5285eecce56 (diff) |
tree-wide: fix a number of log calls that use %m but have no errno set
This is mostly fall-out from d1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc,
however some cases are older bugs.
There might be more issues lurking, this was a simple grep for "%m"
across the tree, with all lines removed that mention "errno" at all.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/conf-parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index c875a6771..949a77fd2 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -47,6 +47,7 @@ //#include "rlimit-util.h" //#include "rlimit-util.h" //#include "rlimit-util.h" +//#include "rlimit-util.h" int config_item_table_lookup( const void *table, @@ -316,8 +317,8 @@ int config_parse(const char *unit, /* Only log on request, except for ENOENT, * since we return 0 to the caller. */ if ((flags & CONFIG_PARSE_WARN) || errno == ENOENT) - log_full(errno == ENOENT ? LOG_DEBUG : LOG_ERR, - "Failed to open configuration file '%s': %m", filename); + log_full_errno(errno == ENOENT ? LOG_DEBUG : LOG_ERR, errno, + "Failed to open configuration file '%s': %m", filename); return errno == ENOENT ? 0 : -errno; } } |