From e1c752d41bce81993345163e8e90af4c10e7dc43 Mon Sep 17 00:00:00 2001 From: Susnata Sovalin Date: Wed, 12 Dec 2018 14:46:09 +0530 Subject: [PATCH] Updating debug logs for format check enforcement Change-Id: Idbf7010f968ed183d0ee7a61a621972de87081b6 Signed-off-by: Susnata Sovalin --- gps-plugin/src/gps_plugin_replay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gps-plugin/src/gps_plugin_replay.c b/gps-plugin/src/gps_plugin_replay.c index 312ec1f..05bbcc1 100644 --- a/gps-plugin/src/gps_plugin_replay.c +++ b/gps-plugin/src/gps_plugin_replay.c @@ -558,8 +558,8 @@ void gps_plugin_stop_replay_mode(replay_timeout *timer) g_source_destroy(timer->timeout_src); LOG_PLUGIN(DBG_LOW, "g_source_destroy timeout_src"); } else { - LOG_PLUGIN(DBG_WARN, "timer->timeout_src is attatched to 0x%x (actual 0x%x)", - g_source_get_context(timer->timeout_src), timer->default_context); + LOG_PLUGIN(DBG_WARN, "timer->timeout_src is attatched to %p (actual %p)", + (void*)(g_source_get_context(timer->timeout_src)), (void*)timer->default_context); } timer->timeout_src = NULL; timer->default_context = NULL; @@ -624,7 +624,7 @@ gboolean gps_plugin_start_replay_mode(replay_timeout *timer) if (timer->timeout_src != NULL) { g_source_set_callback(timer->timeout_src, &gps_plugin_replay_timeout_cb, timer, NULL); if (g_source_attach(timer->timeout_src, timer->default_context) > 0) { - LOG_PLUGIN(DBG_LOW, "timeout_src(0x%x) is created & attatched to 0x%x", timer->timeout_src, timer->default_context); + LOG_PLUGIN(DBG_LOW, "timeout_src(%p) is created & attatched to %p", (void*)timer->timeout_src, (void*)timer->default_context); ret = TRUE; } else { gps_plugin_stop_replay_mode(timer); -- 2.7.4