forked from enlightenment/efl
Fix incorrect printf format usage
This commit is contained in:
parent
380df67f84
commit
1373f0ba4a
|
@ -396,14 +396,14 @@ ecore_hash_dump_graph(Ecore_Hash *hash)
|
||||||
for (i = 0; i < ecore_prime_table[hash->size]; i++)
|
for (i = 0; i < ecore_prime_table[hash->size]; i++)
|
||||||
if (hash->buckets[i])
|
if (hash->buckets[i])
|
||||||
{
|
{
|
||||||
int n = 0;
|
unsigned int n = 0;
|
||||||
Ecore_Hash_Node *node;
|
Ecore_Hash_Node *node;
|
||||||
for (node = hash->buckets[i]; node; node = node->next)
|
for (node = hash->buckets[i]; node; node = node->next)
|
||||||
n++;
|
n++;
|
||||||
printf("%d\t%u", i, n);
|
printf("%u\t%u", i, n);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("%d\t0", i);
|
printf("%u\t0", i);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ _mouse_up(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
|
||||||
len = strlen(buf);
|
len = strlen(buf);
|
||||||
ecore_evas_data_set(ee, "text", buf);
|
ecore_evas_data_set(ee, "text", buf);
|
||||||
|
|
||||||
printf("ecore extn socket txt = \"%s\" len=%d.", buf, len);
|
printf("ecore extn socket txt = \"%s\" len=%zu.", buf, len);
|
||||||
ecore_evas_msg_send(ee, MSG_DOMAIN_CONTROL_OBJECT, MSG_ID_TEXT, buf, len);
|
ecore_evas_msg_send(ee, MSG_DOMAIN_CONTROL_OBJECT, MSG_ID_TEXT, buf, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ handler(void *data, void *buf, unsigned int len)
|
||||||
char *str = malloc(sizeof(char) * len + 1);
|
char *str = malloc(sizeof(char) * len + 1);
|
||||||
memcpy(str, buf, len);
|
memcpy(str, buf, len);
|
||||||
str[len] = '\0';
|
str[len] = '\0';
|
||||||
printf("received %d bytes\n", len);
|
printf("received %u bytes\n", len);
|
||||||
printf("content: %s\n", (const char *)str);
|
printf("content: %s\n", (const char *)str);
|
||||||
free(str);
|
free(str);
|
||||||
if (len && !strncmp(buf, "close", len < 5 ? len : 5))
|
if (len && !strncmp(buf, "close", len < 5 ? len : 5))
|
||||||
|
|
|
@ -61,7 +61,7 @@ iterate_dict(void *data EINA_UNUSED, const void *key, EDBus_Message_Iter *var)
|
||||||
unsigned count;
|
unsigned count;
|
||||||
if (!edbus_message_iter_arguments_get(var, "u", &count))
|
if (!edbus_message_iter_arguments_get(var, "u", &count))
|
||||||
printf("error2\n");
|
printf("error2\n");
|
||||||
printf("PlaylistCount=%d\n", count);
|
printf("PlaylistCount=%u\n", count);
|
||||||
}
|
}
|
||||||
else if (!strcmp(skey, "Orderings"))
|
else if (!strcmp(skey, "Orderings"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,7 @@ main(int argc, char **argv)
|
||||||
"\t%s get <file> <key>\n"
|
"\t%s get <file> <key>\n"
|
||||||
"\t%s del <file> <key>\n"
|
"\t%s del <file> <key>\n"
|
||||||
"\t%s set <file> <key> <value>\n",
|
"\t%s set <file> <key> <value>\n",
|
||||||
argv[0], argv[0], argv[0]);
|
argv[0], argv[0], argv[0], argv[0]);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
itr = eina_xattr_value_ls(argv[2]);
|
itr = eina_xattr_value_ls(argv[2]);
|
||||||
EINA_ITERATOR_FOREACH(itr, xattr)
|
EINA_ITERATOR_FOREACH(itr, xattr)
|
||||||
printf("\t%s: %.*s\n", xattr->name, xattr->length, xattr->value);
|
printf("\t%s: %.*s\n", xattr->name, (int)xattr->length, xattr->value);
|
||||||
eina_iterator_free(itr);
|
eina_iterator_free(itr);
|
||||||
|
|
||||||
eina_shutdown();
|
eina_shutdown();
|
||||||
|
@ -68,8 +68,6 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else if (strcmp(argv[1], "set") == 0)
|
else if (strcmp(argv[1], "set") == 0)
|
||||||
{
|
{
|
||||||
size_t size = 0;
|
|
||||||
const char *value;
|
|
||||||
Eina_Bool ret;
|
Eina_Bool ret;
|
||||||
|
|
||||||
if (argc < 5)
|
if (argc < 5)
|
||||||
|
|
|
@ -572,7 +572,7 @@ _ecore_wl_input_cb_keyboard_key(void *data, struct wl_keyboard *keyboard EINA_UN
|
||||||
memset(keyname, 0, sizeof(keyname));
|
memset(keyname, 0, sizeof(keyname));
|
||||||
xkb_keysym_get_name(sym, keyname, sizeof(keyname));
|
xkb_keysym_get_name(sym, keyname, sizeof(keyname));
|
||||||
if (keyname[0] == '\0')
|
if (keyname[0] == '\0')
|
||||||
snprintf(keyname, sizeof(keyname), "Keycode-%i", code);
|
snprintf(keyname, sizeof(keyname), "Keycode-%u", code);
|
||||||
|
|
||||||
memset(string, 0, sizeof(string));
|
memset(string, 0, sizeof(string));
|
||||||
if (xkb_keysym_to_utf8(sym, string, 32) <= 0)
|
if (xkb_keysym_to_utf8(sym, string, 32) <= 0)
|
||||||
|
|
|
@ -199,7 +199,7 @@ ecore_x_netwm_desk_names_set(Ecore_X_Window root,
|
||||||
if (!s)
|
if (!s)
|
||||||
{
|
{
|
||||||
/* Default to "Desk-<number>" */
|
/* Default to "Desk-<number>" */
|
||||||
sprintf(ss, "Desk-%d", i);
|
sprintf(ss, "Desk-%u", i);
|
||||||
s = ss;
|
s = ss;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ _message_iter_basic_array_to_eina_value(char type, Eina_Value *value, EDBus_Mess
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ARG "arg%d"
|
#define ARG "arg%u"
|
||||||
|
|
||||||
typedef struct _EDBus_Struct_Desc
|
typedef struct _EDBus_Struct_Desc
|
||||||
{
|
{
|
||||||
|
|
|
@ -155,7 +155,7 @@ _setup_thumbnail(struct _emotion_plugin *_plugin)
|
||||||
|
|
||||||
for (i = 0; i < _plugin->frnum; i++)
|
for (i = 0; i < _plugin->frnum; i++)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "images/%d", i);
|
snprintf(buf, sizeof(buf), "images/%u", i);
|
||||||
edje_edit_image_data_add(edje, buf, i);
|
edje_edit_image_data_add(edje, buf, i);
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
edje_edit_state_image_set(edje, "image", "default", 0.00, buf);
|
edje_edit_state_image_set(edje, "image", "default", 0.00, buf);
|
||||||
|
|
Loading…
Reference in New Issue