forked from enlightenment/efl
evlog/log bt - fix size casting tot stop warning when printing errs
This commit is contained in:
parent
c1c7ad8360
commit
ba3ac16b62
|
@ -36,8 +36,8 @@ _eina_debug_dump_fhandle_bt(FILE *f, void **bt, int btlen)
|
|||
// anything here
|
||||
if ((dladdr(bt[i], &info)) && (info.dli_fname[0]))
|
||||
{
|
||||
offset = (unsigned long long)bt[i];
|
||||
base = (unsigned long long)info.dli_fbase;
|
||||
offset = (unsigned long long)(uintptr_t)bt[i];
|
||||
base = (unsigned long long)(uintptr_t)info.dli_fbase;
|
||||
file = _eina_debug_file_get(info.dli_fname);
|
||||
}
|
||||
// rely on normal libc buffering for file ops to avoid syscalls.
|
||||
|
|
|
@ -150,8 +150,8 @@ eina_evlog(const char *event, void *obj, double srctime, const char *detail)
|
|||
item = (Eina_Evlog_Item *)strings;
|
||||
item->tim = now;
|
||||
item->srctim = srctime;
|
||||
item->thread = (unsigned long long)pthread_self();
|
||||
item->obj = (unsigned long long)obj;
|
||||
item->thread = (unsigned long long)(uintptr_t)pthread_self();
|
||||
item->obj = (unsigned long long)(uintptr_t)obj;
|
||||
item->event_offset = sizeof(Eina_Evlog_Item);
|
||||
item->detail_offset = detail_offset;
|
||||
item->event_next = size;
|
||||
|
|
Loading…
Reference in New Issue