eina - Fix coding style madness.

This commit is contained in:
Guillaume Friloux 2014-01-03 19:10:16 +01:00
parent 5ad2e0455f
commit 1073bfcd44
1 changed files with 21 additions and 20 deletions

View File

@ -1927,30 +1927,31 @@ eina_log_print_cb_journald(const Eina_Log_Domain *d,
else
{
Eina_Strbuf *bts;
char **strings;
char **strings;
void *bt[256];
int btlen;
int i;
int btlen;
int i;
btlen = backtrace((void **)bt, 256);
strings = backtrace_symbols((void **)bt, btlen);
btlen = backtrace((void **)bt, 256);
strings = backtrace_symbols((void **)bt, btlen);
bts = eina_strbuf_new();
for (i = 0; i < btlen; i++)
if (i + 1 == btlen)
eina_strbuf_append_printf(bts, "[%s]", strings[i]);
else
eina_strbuf_append_printf(bts, "[%s], ", strings[i]);
bts = eina_strbuf_new();
for (i = 0; i < btlen; i++)
if (i + 1 == btlen)
eina_strbuf_append_printf(bts, "[%s]", strings[i]);
else
eina_strbuf_append_printf(bts, "[%s], ", strings[i]);
sd_journal_send_with_location(file, buf, fnc,
"PRIORITY=%i", level,
"MESSAGE=%s", tmp,
"EFL_DOMAIN=%s", d->domain_str,
"THREAD=%lu", cur,
"BACKTRACE=%s", eina_strbuf_string_get(bts),
NULL);
eina_strbuf_free(bts);
free(strings);
sd_journal_send_with_location(file, buf, fnc,
"PRIORITY=%i", level,
"MESSAGE=%s", tmp,
"EFL_DOMAIN=%s", d->domain_str,
"THREAD=%lu", cur,
"BACKTRACE=%s",
eina_strbuf_string_get(bts),
NULL);
eina_strbuf_free(bts);
free(strings);
}
#endif