Fix display of UINT64 in compactable lists
UINT64 should be displayed in hexadecimal.
This commit is contained in:
parent
32e1b22404
commit
6ea12a9746
|
@ -2075,9 +2075,19 @@ _obj_info_compactable_list_to_buffer(Eo_Dbg_Info *root_eo, char* buffer, unsigne
|
||||||
buffer += snprintf(buffer, buffer_size, "%s:", root_eo->name);
|
buffer += snprintf(buffer, buffer_size, "%s:", root_eo->name);
|
||||||
EINA_LIST_FOREACH(list.list, l, eo)
|
EINA_LIST_FOREACH(list.list, l, eo)
|
||||||
{
|
{
|
||||||
char *strval = eina_value_to_string(&(eo->value));
|
if (eina_value_type_get(&(eo->value)) == EINA_VALUE_TYPE_UINT64)
|
||||||
buffer += snprintf(buffer, buffer_size, " %s: %s", eo->name, strval);
|
{
|
||||||
free(strval);
|
/* We treat UINT64 as a pointer. */
|
||||||
|
uint64_t ptr = 0;
|
||||||
|
eina_value_get(&(eo->value), &ptr);
|
||||||
|
buffer += snprintf(buffer, buffer_size, " %s: %llx", eo->name, (unsigned long long) ptr);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
char *strval = eina_value_to_string(&(eo->value));
|
||||||
|
buffer += snprintf(buffer, buffer_size, " %s: %s", eo->name, strval);
|
||||||
|
free(strval);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue