From: Kyungwook Tak Date: Fri, 16 Dec 2016 04:10:39 +0000 (+0900) Subject: Static cast enum value to int X-Git-Tag: accepted/tizen/common/20161227.192124~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31231c9a52033726e7daf2062cc432140b6c6ba6;p=platform%2Fcore%2Fsecurity%2Fkey-manager.git Static cast enum value to int Change-Id: I738b0a745725c47a0608c58396df79f745ccd412 Signed-off-by: Kyungwook Tak --- diff --git a/src/manager/dpl/log/src/old_style_log_provider.cpp b/src/manager/dpl/log/src/old_style_log_provider.cpp index dabf0b5..d955827 100644 --- a/src/manager/dpl/log/src/old_style_log_provider.cpp +++ b/src/manager/dpl/log/src/old_style_log_provider.cpp @@ -104,7 +104,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(level)); } }