summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-11 22:53:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 00:32:16 +0900
commit6d4b85f820d4bd16c29e0de0b0c44b1ab6935b3e (patch)
treee4f26de710d2b593fa068878d670a64201843668 /src
parent376b799c6536f5ee456f3ad49f83aa6b5121f36f (diff)
eo base - fix warnings for debug logs to get format string types happy
gcc is very unhappy with these log prints - specifically on arm 32bit. this fixes it so we can focus on real warnings/issues.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index a8abd3ce2c..f13a9afd63 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -2510,12 +2510,12 @@ _eo_log_obj_entry_show(const Eo_Log_Obj_Entry *entry, int log_level, const char
2510 if (info.dli_sname) 2510 if (info.dli_sname)
2511 { 2511 {
2512 eina_log_print(_eo_log_objs_dom, log_level, file, func_name, line, 2512 eina_log_print(_eo_log_objs_dom, log_level, file, func_name, line,
2513 " %#016" PRIx64 ": %s+%#" PRIx64 " (in %s %#" PRIx64 ")", 2513 " 0x%016llx: %s+%llu (in %s 0x%llx)",
2514 (uint64_t)entry->bt[i], 2514 (unsigned long long)(uintptr_t)entry->bt[i],
2515 info.dli_sname, 2515 info.dli_sname,
2516 (char *)entry->bt[i] - (char *)info.dli_saddr, 2516 (unsigned long long)(uintptr_t)((char *)entry->bt[i] - (char *)info.dli_saddr),
2517 info.dli_fname ? info.dli_fname : "??", 2517 info.dli_fname ? info.dli_fname : "??",
2518 (uint64_t)info.dli_fbase); 2518 (unsigned long long)(uintptr_t)info.dli_fbase);
2519 continue; 2519 continue;
2520 } 2520 }
2521 else if (info.dli_fname) 2521 else if (info.dli_fname)
@@ -2531,19 +2531,19 @@ _eo_log_obj_entry_show(const Eo_Log_Obj_Entry *entry, int log_level, const char
2531 else fname++; 2531 else fname++;
2532 2532
2533 eina_log_print(_eo_log_objs_dom, log_level, file, func_name, line, 2533 eina_log_print(_eo_log_objs_dom, log_level, file, func_name, line,
2534 " %#016" PRIx64 ": %s+%#" PRIx64 " (in %s %#" PRIx64 ")", 2534 " 0x%016llx: %s+%llu (in %s 0x%llx)",
2535 (uint64_t)entry->bt[i], 2535 (unsigned long long)(uintptr_t)entry->bt[i],
2536 fname, 2536 fname,
2537 (char *)entry->bt[i] - (char *)info.dli_fbase, 2537 (unsigned long long)(uintptr_t)((char *)entry->bt[i] - (char *)info.dli_fbase),
2538 info.dli_fname, 2538 info.dli_fname,
2539 (uint64_t)info.dli_fbase); 2539 (unsigned long long)(uintptr_t)info.dli_fbase);
2540 continue; 2540 continue;
2541 } 2541 }
2542 } 2542 }
2543#endif 2543#endif
2544 2544
2545 eina_log_print(_eo_log_objs_dom, log_level, func_name, file, line, 2545 eina_log_print(_eo_log_objs_dom, log_level, func_name, file, line,
2546 " %#016" PRIx64, (uint64_t)entry->bt[i]); 2546 " 0x%016llx", (unsigned long long)(uintptr_t)entry->bt[i]);
2547 } 2547 }
2548} 2548}
2549#endif 2549#endif