libcamera: log: Fix miscellaneous coding style issues

Those issues were pointed out during review.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2018-12-11 00:02:04 +02:00
parent cc7d204b2c
commit ad8934db5b
2 changed files with 5 additions and 5 deletions

View file

@ -33,6 +33,6 @@ private:
#define LOG(severity) LogMessage(__FILE__, __LINE__, Log##severity).stream()
};
} /* namespace libcamera */
#endif /* __LIBCAMERA_LOG_H__ */

View file

@ -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 */