/*
- * $Id: ProfStats.cc,v 1.5 2003/03/10 04:56:36 robertc Exp $
+ * $Id: ProfStats.cc,v 1.6 2005/06/03 15:00:55 serassio Exp $
*
* DEBUG: section 81 CPU Profiling Routines
* AUTHOR: Andres Kroonmaa
xprof_show_item(StoreEntry * sentry, const char *name, xprof_stats_data * hist)
{
storeAppendPrintf(sentry,
- "%s\t %llu\t %llu\t %llu\t %llu\t %llu\t %.2f\t %6.3f\t\n",
+ "%s\t %" PRIu64 "\t %" PRIu64 "\t %" PRIu64 "\t %" PRIu64 "\t %" PRIu64 "\t %.2f\t %6.3f\t\n",
name,
hist->count,
hist->summ,
storeAppendPrintf(sentry, "\n%s:", descr);
- storeAppendPrintf(sentry, " (Cumulated time: %llu, %.2f sec)\n",
+ storeAppendPrintf(sentry, " (Cumulated time: %" PRIu64 ", %.2f sec)\n",
show->delta,
time_frame
);
" (CPU times are in arbitrary units, most probably in CPU clock ticks)\n");
storeAppendPrintf(sentry,
"Probe Name\t Event Count\t last Interval \t Avg Interval \t since squid start \t (since system boot) \n");
- storeAppendPrintf(sentry, "Total\t %lu\t %llu \t %llu \t %llu \t %llu\n",
+ storeAppendPrintf(sentry, "Total\t %lu\t %" PRIu64 " \t %" PRIu64 " \t %" PRIu64 " \t %" PRIu64 "\n",
(long unsigned) xprof_events,
xprof_delta,
xprof_average_delta,
/*
- * $Id: squid.h,v 1.245 2005/01/06 13:16:39 serassio Exp $
+ * $Id: squid.h,v 1.246 2005/06/03 15:00:55 serassio Exp $
*
* AUTHOR: Duane Wessels
*
#define IPPROTO_TCP 0
#endif
+#ifndef PRIu64 /* ISO C99 Standard printf() macro for 64 bit unsigned int */
+#ifdef _SQUID_MSWIN_ /* Windows native port using MSVCRT */
+#define PRIu64 "I64u"
+#else
+#define PRIu64 "llu"
+#endif /* _SQUID_MSWIN_ */
+#endif /* PRIu64 */
+
#endif /* SQUID_H */