[Common] Fix typo in logger format string 10/191710/1
authorPawel Wasowski <p.wasowski2@partner.samsung.com>
Mon, 22 Oct 2018 14:07:08 +0000 (16:07 +0200)
committerPawel Wasowski <p.wasowski2@partner.samsung.com>
Mon, 22 Oct 2018 14:11:52 +0000 (16:11 +0200)
The project failed to build, if "enable_common_debug_logs%" flag in
src/common/common.gyp was set to "1". It was due to LoggerD's format
string, incompatible with the actual type of the logged variable.

[Verification] the project builds without error, if
               "enable_common_debug_logs%" is set to "1"

Change-Id: Ic7b7d51341f327ce96003312a93e9cfbb09db5b8
Signed-off-by: Pawel Wasowski <p.wasowski2@partner.samsung.com>
src/common/GDBus/proxy.cpp

index 86d4d6faae31ab2a70860138bd543d94445f97dd..4b330fd1c3641ec742548086b4e8c6297b953a60 100644 (file)
@@ -90,7 +90,7 @@ void Proxy::signalSubscribe() {
                                                 m_signal_name.c_str(), m_signal_path.c_str(), NULL,
                                                 G_DBUS_SIGNAL_FLAGS_NONE, signalCallbackProxy,
                                                 static_cast<gpointer>(this), NULL);
-  LoggerD("g_dbus_connection_signal_subscribe returned id: %d", m_sub_id);
+  LoggerD("g_dbus_connection_signal_subscribe returned id: %u", m_sub_id);
 
   m_dbus_signal_subscribed = true;
 }