summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-01-16 12:18:26 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-01-17 21:31:33 +0000
commitd67841a9906935523bdb2b314e09a041091aa3ca (patch)
tree1ce1992d9890fbd9c82f019cb2dcc71b92b19831
parent565133411988dd6bd65dd6f56758cd96d689fec6 (diff)
libcamera: log: Fix coding style warnings
The checkstyle utility highlights some minor warnings against the logger implementation. Fix these up. Fixes: edbd2059d8a4 ("libcamera: Add initial logger") Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/include/log.h6
-rw-r--r--src/libcamera/log.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/include/log.h b/src/libcamera/include/log.h
index c1af3741..cc3f9404 100644
--- a/src/libcamera/include/log.h
+++ b/src/libcamera/include/log.h
@@ -23,11 +23,11 @@ class LogMessage
{
public:
LogMessage(const char *fileName, unsigned int line,
- LogSeverity severity);
- LogMessage(const LogMessage&) = delete;
+ LogSeverity severity);
+ LogMessage(const LogMessage &) = delete;
~LogMessage();
- std::ostream& stream() { return msgStream; }
+ std::ostream &stream() { return msgStream; }
private:
std::ostringstream msgStream;
diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp
index 9b2ae1ba..74cba383 100644
--- a/src/libcamera/log.cpp
+++ b/src/libcamera/log.cpp
@@ -66,7 +66,7 @@ namespace libcamera {
static const char *log_severity_name(LogSeverity severity)
{
- static const char * const names[] = {
+ static const char *const names[] = {
" DBG",
" INFO",
" WARN",
a id='n113' href='#n113'>113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181