summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-12-11 00:02:04 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-12-11 00:02:04 +0200
commitad8934db5b29810003a9a66b9c3a49f559ebff15 (patch)
treef5a4ae85042822f989bb54b9d5af33036064551b /src
parentcc7d204b2c51853f7d963d144f5944e209e7ea29 (diff)
libcamera: log: Fix miscellaneous coding style issues
Those issues were pointed out during review. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/include/log.h2
-rw-r--r--src/libcamera/log.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libcamera/include/log.h b/src/libcamera/include/log.h
index 76acd152..41f8a756 100644
--- a/src/libcamera/include/log.h
+++ b/src/libcamera/include/log.h
@@ -33,6 +33,6 @@ private:
#define LOG(severity) LogMessage(__FILE__, __LINE__, Log##severity).stream()
-};
+} /* namespace libcamera */
#endif /* __LIBCAMERA_LOG_H__ */
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 <cstdio>
@@ -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<unsigned int>(severity) < ARRAY_SIZE(names))
return names[severity];
else
return "UNKN";
@@ -78,4 +78,4 @@ LogMessage::~LogMessage()
fflush(stderr);
}
-};
+} /* namespace libcamera */