diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 3437a315418..d6b718b0d27 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -2950,7 +2950,8 @@ parse_TokenOrQuotedString(char **var) static void dump_time_t(StoreEntry * entry, const char *name, time_t var) { - storeAppendPrintf(entry, "%s %d seconds\n", name, (int) var); + PackableStream os(*entry); + os << name << ' ' << var << " seconds\n"; } void @@ -2972,10 +2973,11 @@ free_time_t(time_t * var) static void dump_time_msec(StoreEntry * entry, const char *name, time_msec_t var) { + PackableStream os(*entry); if (var % 1000) - storeAppendPrintf(entry, "%s %" PRId64 " milliseconds\n", name, var); + os << name << ' ' << var << " milliseconds\n"; else - storeAppendPrintf(entry, "%s %d seconds\n", name, (int)(var/1000) ); + os << name << ' ' << (var/1000) << " seconds\n"; } static void