Mercurial > hg > freeDiameter
diff libfdcore/core.c @ 1167:eaa92af9e46d
New macro LOG_SPLIT to allow dumping multi-line buffers with prefix and suffix
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Fri, 31 May 2013 18:15:05 +0200 |
parents | 05f74dc19c49 |
children | cc96a4dfb3d1 |
line wrap: on
line diff
--- a/libfdcore/core.c Fri May 31 17:47:36 2013 +0200 +++ b/libfdcore/core.c Fri May 31 18:15:05 2013 +0200 @@ -250,11 +250,11 @@ /* Display configuration */ b = fd_conf_dump(&buf, &len, NULL); - LOG_N("%s", b ?: "Error during configuration dump..."); + LOG_SPLIT(FD_LOG_NOTICE, NULL, b ?: "<Error during configuration dump...>", NULL); /* Display extensions status */ b = fd_ext_dump(&buf, &len, NULL, 19); - LOG_N("Loaded extensions: %s", b ?: "Error during extensions dump..."); + LOG_SPLIT(FD_LOG_NOTICE, "Loaded extensions: ", b?:"<Error during extensions dump...>", NULL); /* Display registered triggers for FDEV_TRIGGER */ b = fd_event_trig_dump(&buf, &len, &offset);