summaryrefslogtreecommitdiff
path: root/src/LogInit.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-21 22:19:36 +0100
committerMax Kellermann <max@duempel.org>2015-01-21 22:19:36 +0100
commita38f02541d82ce27666e27bf7e3123bff621ca70 (patch)
tree1180a760127795137085a9c332b50bd997deb5a6 /src/LogInit.cxx
parentfdba76ba47920a5dc1cc23f0be3131e4b85a041a (diff)
config/Param: make "line" signed
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r--src/LogInit.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx
index d9fd846fa..b154bcec4 100644
--- a/src/LogInit.cxx
+++ b/src/LogInit.cxx
@@ -72,14 +72,14 @@ open_log_file(void)
}
static bool
-log_init_file(unsigned line, Error &error)
+log_init_file(int line, Error &error)
{
assert(!out_path.IsNull());
out_fd = open_log_file();
if (out_fd < 0) {
const std::string out_path_utf8 = out_path.ToUTF8();
- error.FormatErrno("failed to open log file \"%s\" (config line %u)",
+ error.FormatErrno("failed to open log file \"%s\" (config line %d)",
out_path_utf8.c_str(), line);
return false;
}
@@ -89,7 +89,7 @@ log_init_file(unsigned line, Error &error)
}
static inline LogLevel
-parse_log_level(const char *value, unsigned line)
+parse_log_level(const char *value, int line)
{
if (0 == strcmp(value, "default"))
return LogLevel::DEFAULT;
@@ -98,7 +98,7 @@ parse_log_level(const char *value, unsigned line)
else if (0 == strcmp(value, "verbose"))
return LogLevel::DEBUG;
else {
- FormatFatalError("unknown log level \"%s\" at line %u",
+ FormatFatalError("unknown log level \"%s\" at line %d",
value, line);
}
}