/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#define show_int(data) show_it(data, "d")
#define show_double(data) show_it(data, "f")
#define show_int(data) show_it(data, "d")
#define show_double(data) show_it(data, "f")
length = strtol(q, &q, 10);
goto handle_modifier;
case 'c': /* category name; LOG4J compliant
length = strtol(q, &q, 10);
goto handle_modifier;
case 'c': /* category name; LOG4J compliant
- len = snprintf(p, sz, "%s:%d", ev->fileName, ev->lineNum);
+ int len = snprintf(p, sz, "%s:%d", ev->fileName, ev->lineNum);
break;
case 'b': /* backtrace; called %throwable in LOG4J */
case 'B': /* short backtrace; called %throwable{short} in LOG4J */
break;
case 'b': /* backtrace; called %throwable in LOG4J */
case 'B': /* short backtrace; called %throwable{short} in LOG4J */
show_double(surf_get_clock() - format_begin_of_time);
break;
case 'm': { /* user-provided message; LOG4J compliant */
show_double(surf_get_clock() - format_begin_of_time);
break;
case 'm': { /* user-provided message; LOG4J compliant */
- len = vsnprintf(p, sz, msg_fmt, ev->ap);
+ int len = vsnprintf(p, sz, msg_fmt, ev->ap);
xbt_log_layout_t xbt_log_layout_format_new(char *arg)
{
xbt_log_layout_t res = xbt_new0(s_xbt_log_layout_t, 1);
xbt_log_layout_t xbt_log_layout_format_new(char *arg)
{
xbt_log_layout_t res = xbt_new0(s_xbt_log_layout_t, 1);