A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make bprintf abort on error, and define bvprintf accordingly.
[simgrid.git]
/
src
/
xbt
/
xbt_log_layout_format.c
diff --git
a/src/xbt/xbt_log_layout_format.c
b/src/xbt/xbt_log_layout_format.c
index
22a7cca
..
5eba2b8
100644
(file)
--- a/
src/xbt/xbt_log_layout_format.c
+++ b/
src/xbt/xbt_log_layout_format.c
@@
-56,7
+56,6
@@
static void xbt_log_layout_format_dynamic(xbt_log_layout_t l,
char *q = l->data;
char *tmp;
char *tmp2;
char *q = l->data;
char *tmp;
char *tmp2;
- int vres; /* shut gcc up, but ignored */
while (*q != '\0') {
if (*q == '%') {
while (*q != '\0') {
if (*q == '%') {
@@
-150,7
+149,7
@@
static void xbt_log_layout_format_dynamic(xbt_log_layout_t l,
break;
case 'm': /* user-provided message; LOG4J compliant */
break;
case 'm': /* user-provided message; LOG4J compliant */
-
vres = vasprintf(&tmp2,
fmt, ev->ap_copy);
+
tmp2 = bvprintf(
fmt, ev->ap_copy);
append1("%s", "%.*s", tmp2);
free(tmp2);
break;
append1("%s", "%.*s", tmp2);
free(tmp2);
break;