From: Joel Rosdahl Date: Sun, 1 Aug 2010 14:32:16 +0000 (+0200) Subject: Use newline instead of space as separator for stats values X-Git-Tag: v3.1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29e6dcee1b4cc0429561fdd5acca32743bc80aea;p=thirdparty%2Fccache.git Use newline instead of space as separator for stats values This is a backward-compatible change and makes the content somewhat easier to inspect when debugging. --- diff --git a/stats.c b/stats.c index c5c93433a..d99a81367 100644 --- a/stats.c +++ b/stats.c @@ -120,11 +120,10 @@ write_stats(const char *path, unsigned counters[STATS_END]) return; } for (i = 0; i < STATS_END; i++) { - if (fprintf(f, "%u ", counters[i]) < 0) { + if (fprintf(f, "%u\n", counters[i]) < 0) { fatal("Failed to write to %s", tmp_file); } } - fputs("\n", f); fclose(f); x_rename(tmp_file, path); }