Log more debug data.

This commit is contained in:
Ian Gulliver
2016-03-07 17:38:18 -08:00
parent 31bb8f2a95
commit 3bcc2b43ba
4 changed files with 26 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ bool log_reopen(const char *path) {
void log_write(char type, const char *loc, const uint8_t *id, const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
assert(fprintf(log_stream, "%c [%20s] %s: ", type, loc, id) > 0);
assert(fprintf(log_stream, "%c [%18s] %s: ", type, loc, id) > 0);
assert(vfprintf(log_stream, fmt, ap) > 0);
assert(fprintf(log_stream, "\n") == 1);
va_end(ap);