diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-05-19 16:28:11 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-05-19 16:28:11 +0100 |
commit | 1b3539a50d29a8956aa0bd2e668681e8afb968c0 (patch) | |
tree | c390d76bf35c948625e8d63e53aa04f54ae1b2ad /replay.c | |
parent | 58db24681d7b27faed5340c2195119f0d7c7a97f (diff) |
Announce the start and end of log replay. Also ensure log replay lines finish with CRLF when writing.
Diffstat (limited to 'replay.c')
-rw-r--r-- | replay.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -266,6 +266,9 @@ int writereplayline(char *str, char *basedir) { // Prepend the unixtime timestamp snprintf(line, MAXCHAR, "%s %s", timenowstr, str); + // Ensure the line finishes with CRLF + appendcrlf(line); + printf("Complete replay log string to write: '%s', length '%ld'.\n", line, strlen(line)); // Write complete line to file |