Fix LOG(message)
authorPiotr Bartosiewicz <p.bartosiewi@partner.samsung.com>
Tue, 15 Apr 2014 09:57:53 +0000 (11:57 +0200)
committerJan Olszak <j.olszak@samsung.com>
Mon, 19 May 2014 11:47:15 +0000 (13:47 +0200)
[Bug/Feature]   Could not log variables with name 'message'.
[Cause]         This name is used by variable in LOG macro.
[Solution]      Uglify name used in macro.
[Verification]  Build, install, run tests.

Change-Id: I0364286f273a5037c9684d935c3ad18d5bb15f69

common/log/logger.hpp

index d8193b3..1e99c0b 100644 (file)
@@ -61,10 +61,10 @@ private:
     do { \
         if (security_containers::log::Logger::getLogLevel() <= \
             security_containers::log::LogLevel::SEVERITY) { \
-            std::ostringstream message; \
-            message << MESSAGE; \
+            std::ostringstream messageStream__; \
+            messageStream__ << MESSAGE; \
             security_containers::log::Logger logger(#SEVERITY, __FILE__, __LINE__); \
-            logger.logMessage(message.str()); \
+            logger.logMessage(messageStream__.str()); \
         } \
     } while(0)