From f79c9bb3741da147e3e87d5f29f8278aa0e74661 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 4 Oct 2012 02:42:26 +0000 Subject: [PATCH] elementary: Fixes bad format strings in *printf() calls. Patch by Igor Murzov SVN revision: 77395 --- legacy/elementary/src/bin/test_flipselector.c | 2 +- legacy/elementary/src/bin/test_web.c | 2 +- legacy/elementary/src/lib/elc_popup.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/bin/test_flipselector.c b/legacy/elementary/src/bin/test_flipselector.c index 20a99fce28..676e4dff78 100644 --- a/legacy/elementary/src/bin/test_flipselector.c +++ b/legacy/elementary/src/bin/test_flipselector.c @@ -129,7 +129,7 @@ test_flipselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *even evas_object_size_hint_weight_set(fp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); for (i = 1990; i <= 2099; i++) { - snprintf(buf, 8, "%d", i); + snprintf(buf, 8, "%u", i); elm_flipselector_item_append(fp, buf, _sel_cb, NULL); } diff --git a/legacy/elementary/src/bin/test_web.c b/legacy/elementary/src/bin/test_web.c index c5976a660f..3983d5f3a9 100644 --- a/legacy/elementary/src/bin/test_web.c +++ b/legacy/elementary/src/bin/test_web.c @@ -226,7 +226,7 @@ _file_selector_hook(void *data __UNUSED__, Evas_Object *obj __UNUSED__, Eina_Boo static void _console_message_hook(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *message, unsigned int line_number, const char *source_id) { - printf("CONSOLE: %s:%d:%s\n", source_id, line_number, message); + printf("CONSOLE: %s:%u:%s\n", source_id, line_number, message); } static void diff --git a/legacy/elementary/src/lib/elc_popup.c b/legacy/elementary/src/lib/elc_popup.c index 4b69c2050c..7e86b41340 100644 --- a/legacy/elementary/src/lib/elc_popup.c +++ b/legacy/elementary/src/lib/elc_popup.c @@ -447,9 +447,9 @@ _button_remove(Evas_Object *obj, { sd->buttons[i] = sd->buttons[i + 1]; - snprintf(buf, sizeof(buf), "actionbtn%u", pos + 1); + snprintf(buf, sizeof(buf), "actionbtn%d", pos + 1); elm_object_part_content_unset(sd->action_area, buf); - snprintf(buf, sizeof(buf), "actionbtn%u", pos); + snprintf(buf, sizeof(buf), "actionbtn%d", pos); elm_object_part_content_set (sd->action_area, buf, sd->buttons[i]->btn); }