X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Flog.c;h=2a77a2704e339d4606200de553eefe97284b371b;hp=c55fd57235df339f370f9c4e294bd68cb8ff7ebe;hb=ddb94b5bdbb87df5092b286ae75ba53116b5333e;hpb=0689e3dd6752f45f493eceb3edf040fbc7849846 diff --git a/src/helper/log.c b/src/helper/log.c index c55fd57235..2a77a2704e 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -70,13 +70,13 @@ static void log_printfv(enum log_levels level, const char *file, int line, const if (debug_level >= LOG_DEBUG) { /* print with count and time information */ - int t=(int)(time(NULL)-start); - fprintf(log_output, "%s %d %d %s:%d %s(): %s\n", log_strings[level+1], count, t, file, line, function, buffer); + int t=(int)(time(NULL)-start); + fprintf(log_output, "%s %d %d %s:%d %s(): %s", log_strings[level+1], count, t, file, line, function, buffer); } else { /* do not print count and time */ - fprintf(log_output, "%s %s:%d %s(): %s\n", log_strings[level+1], file, line, function, buffer); + fprintf(log_output, "%s %s:%d %s(): %s", log_strings[level+1], file, line, function, buffer); } fflush(log_output);