diff options
Diffstat (limited to 'replay.c')
-rw-r--r-- | replay.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -199,7 +199,7 @@ int readreplayline(int seconds, int linenum, char *str, char *basedir) { fp = fopen(filename, "r"); if (fp == NULL) { - debugprint("error: could not open replay log '%s'.\n", filename); + debugprint(DEBUG_CRIT, "error: could not open replay log '%s'.\n", filename); fclose(fp); return 0; } @@ -211,7 +211,7 @@ int readreplayline(int seconds, int linenum, char *str, char *basedir) { // Read the timestamp from each line int timestamp = gettimestamp(line); if (timestamp < 1) { - debugprint("Error reading timestamp from replay log file.\n"); + debugprint(DEBUG_CRIT, "Error reading timestamp from replay log file.\n"); fclose(fp); return 0; } @@ -257,7 +257,7 @@ int writereplayline(char *str, char *basedir) { fp = fopen(filename, "a"); if (fp == NULL) { - debugprint("error: could not open replay log '%s' for writing.\n", filename); + debugprint(DEBUG_CRIT, "error: could not open replay log '%s' for writing.\n", filename); fclose(fp); return 0; } @@ -274,11 +274,11 @@ int writereplayline(char *str, char *basedir) { // Ensure the line finishes with CRLF appendcrlf(line); - debugprint("Complete replay log string to write: '%s', length '%ld'.\n", line, strlen(line)); + debugprint(DEBUG_FULL, "Complete replay log string to write: '%s', length '%ld'.\n", line, strlen(line)); // Write complete line to file if ((bytes = fprintf(fp, "%s", line)) < 0) { - debugprint("error: could not write to replay log file.\n"); + debugprint(DEBUG_CRIT, "error: could not write to replay log file.\n"); fclose(fp); return 0; } |