Changeset: dd4f501f26c3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dd4f501f26c3
Modified Files:
monetdb5/mal/mal_profiler.c
Branch: default
Log Message:
Rather than aborting, truncate log message.
diffs (17 lines):
diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c
--- a/monetdb5/mal/mal_profiler.c
+++ b/monetdb5/mal/mal_profiler.c
@@ -54,10 +54,10 @@ static struct{
#define LOGLEN 8192
#define lognew() loglen = 0; logbase = logbuffer; *logbase = 0;
-#define logadd(...) {
\
+#define logadd(...) {
\
do {
\
- loglen += snprintf(logbase+loglen, LOGLEN -1 - loglen,
__VA_ARGS__); \
- assert(loglen < LOGLEN); \
+ if (loglen < LOGLEN)
\
+ loglen += snprintf(logbase+loglen, LOGLEN - loglen,
__VA_ARGS__); \
} while (0);}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list