From ad8934db5b29810003a9a66b9c3a49f559ebff15 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 11 Dec 2018 00:02:04 +0200 Subject: libcamera: log: Fix miscellaneous coding style issues Those issues were pointed out during review. Signed-off-by: Laurent Pinchart --- src/libcamera/log.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libcamera/log.cpp') diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp index 18ccfa32..2a382497 100644 --- a/src/libcamera/log.cpp +++ b/src/libcamera/log.cpp @@ -2,7 +2,7 @@ /* * Copyright (C) 2018, Google Inc. * - * log.h - Logging infrastructure + * log.cpp - Logging infrastructure */ #include @@ -14,7 +14,7 @@ #include "utils.h" /** - * \file log.h + * \file log.cpp * \brief Logging infrastructure */ @@ -48,7 +48,7 @@ static const char *log_severity_name(LogSeverity severity) " ERR", }; - if ((unsigned int)severity < ARRAY_SIZE(names)) + if (static_cast(severity) < ARRAY_SIZE(names)) return names[severity]; else return "UNKN"; @@ -78,4 +78,4 @@ LogMessage::~LogMessage() fflush(stderr); } -}; +} /* namespace libcamera */ -- cgit v1.2.1