diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-01-11 15:13:42 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-01-14 22:24:22 +0000 |
commit | bced32d514bb36b97f4dd045f4ee6919e1642aa0 (patch) | |
tree | 0abcbb5b8aea1d0e1e71ec30a2029289a37b16c4 /src | |
parent | d833c1d39e75141f98ab88f9952f9b86a4243006 (diff) |
libcamera: log: Fix unknown log level representation
Commit 99a3e7bcfb38 ("libcamera: log: Add a LogFatal log level")
expanded the text representation of the log levels to support the FATAL
string, but left the default unknown match at four characters.
This code should never expect to be executed, but for completeness match
the string lengths by adding an extra character to the result.
Fixes: 99a3e7bcfb38 ("libcamera: log: Add a LogFatal log level")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/log.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp index 281e31d9..9b2ae1ba 100644 --- a/src/libcamera/log.cpp +++ b/src/libcamera/log.cpp @@ -77,7 +77,7 @@ static const char *log_severity_name(LogSeverity severity) if (static_cast<unsigned int>(severity) < ARRAY_SIZE(names)) return names[severity]; else - return "UNKN"; + return "UNKWN"; } /** |