use correct conversion specifier in debug logging
authorKalle Lampila <kalle.lampila@ixonos.com>
Thu, 28 Feb 2013 11:47:29 +0000 (13:47 +0200)
committerStanislav Radomskiy <Stanislavx.Radomskiy@intel.com>
Mon, 25 Mar 2013 09:55:35 +0000 (11:55 +0200)
fixing TDIS-4294

Incorrect conversion specifier caused segmentation faults
and corrupted debug logging lines.

Change-Id: I5ede7e9a5d1954043abc937d5af294a5216c8406
Signed-off-by: Kalle Lampila <kalle.lampila@ixonos.com>
setting-profile/src/setting-profile.c

index cae80ba..a5d940e 100755 (executable)
@@ -91,7 +91,7 @@ void __sound_volume_changed_cb(sound_type_e type, unsigned int volume, void *use
                SETTING_TRACE_DEBUG("get_volume is %d", volume);
 
                old_volume = elm_slider_value_get(item_data->eo_check);
-               SETTING_TRACE_DEBUG("slider volume is %d", old_volume);
+               SETTING_TRACE_DEBUG("slider volume is %f", old_volume);
                if ((int)volume != (int)(old_volume + 0.5)) {   /* reset again */
                        elm_slider_value_set(item_data->eo_check, (double)volume);
                        SETTING_TRACE_DEBUG("update to new value %d", volume);