From: Rithesh Gowda Date: Tue, 3 Dec 2013 08:02:07 +0000 (+0530) Subject: Added errno in log message X-Git-Tag: accepted/tizen/mobile/20140113.182016~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b15129482d86964d6abc4473776793310b568d8;p=platform%2Fframework%2Fnative%2Fappfw.git Added errno in log message Change-Id: I531dad4272b5e44abb2239f8716dc5461be61dd1 Signed-off-by: Rithesh Gowda --- diff --git a/src/base/runtime/FBaseRt_TimerImpl.cpp b/src/base/runtime/FBaseRt_TimerImpl.cpp index f1159bc..7601023 100644 --- a/src/base/runtime/FBaseRt_TimerImpl.cpp +++ b/src/base/runtime/FBaseRt_TimerImpl.cpp @@ -81,7 +81,7 @@ _TimerImpl::Construct(const Timer& timer, ITimerEventListener& listener) "Can't get GMainContext."); timerFd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); - SysTryReturnResult(NID_BASE_RT, timerFd != -1, E_SYSTEM, "failed to create a timerfd."); + SysTryReturnResult(NID_BASE_RT, timerFd != -1, E_SYSTEM, "failed to create a timerfd, errno: %d (%s).", errno, strerror(errno)); pGIOChannel = g_io_channel_unix_new(timerFd); SysTryCatch(NID_BASE_RT, pGIOChannel != null, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Failed to create a GIOChannel for timerfd.");