Cast LogLevel to int explicitly before use as int 40/106540/3 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20161227.192121 accepted/tizen/ivi/20161226.131244 accepted/tizen/mobile/20161226.131152 accepted/tizen/tv/20161226.131211 accepted/tizen/unified/20170309.033329 accepted/tizen/wearable/20161226.131220 submit/tizen/20161226.013211 submit/tizen_unified/20170308.100408
authorsangwan.kwon <sangwan.kwon@samsung.com>
Thu, 22 Dec 2016 04:41:53 +0000 (13:41 +0900)
committerkyungwook tak <k.tak@samsung.com>
Fri, 23 Dec 2016 02:41:26 +0000 (18:41 -0800)
Change-Id: I8faaaf896cc4739217f5c8d8f201043ef3c06ef1
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/dpl/log/src/old_style_log_provider.cpp

index e76675c..82bc1c6 100644 (file)
@@ -95,7 +95,7 @@ void OldStyleLogProvider::Log(AbstractLogProvider::LogLevel level,
                        std::string("] ") << function << std::string("(): ") << message << mark.end;
                fprintf(stdout, "%s\n", val.str().c_str());
        } catch (const std::out_of_range &) {
-               fprintf(stdout, "Unsupported log level: %d\n", level);
+               fprintf(stdout, "Unsupported log level: %d\n", static_cast<int>(level));
        }
 }