Changeset: aed1b1734699 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/aed1b1734699
Modified Files:
gdk/gdk_logger.c
Branch: Sep2022
Log Message:
Use a single fprintf call for debug messages.
diffs (22 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -1171,14 +1171,14 @@ log_read_transaction(logger *lg)
}
if (lg->debug & 1) {
- fprintf(stderr, "#log_readlog: ");
if (l.flag > 0 &&
l.flag != LOG_CLEAR &&
l.flag < (bte) (sizeof(log_commands) /
sizeof(log_commands[0])))
- fprintf(stderr, "%s", log_commands[(int)
l.flag]);
+ fprintf(stderr, "#log_readlog: %s %d\n",
+ log_commands[(int) l.flag], l.id);
else
- fprintf(stderr, "%d", l.flag);
- fprintf(stderr, " %d\n", l.id);
+ fprintf(stderr, "#log_readlog: %d %d\n",
+ l.flag, l.id);
}
/* the functions we call here can succeed (LOG_OK),
* but they can also fail for two different reasons:
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]