Changeset: 4641b2865d54 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4641b2865d54 Modified Files: clients/mapiclient/mclient.c Branch: Mar2018 Log Message:
mclient: consistently use PRId64 instead of TTFMT diffs (31 lines): diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c --- a/clients/mapiclient/mclient.c +++ b/clients/mapiclient/mclient.c @@ -101,7 +101,6 @@ int csvheader = 0; /* include header li /* use a 64 bit integer for the timer */ typedef int64_t timertype; -#define TTFMT "%" PRId64 static timertype t0, t1; /* used for timing */ @@ -268,16 +267,16 @@ timerHuman(int64_t sqloptimizer, int64_t if (timermode == T_CLOCK) { if (t / 1000 < 950) { - mnstr_printf(toConsole, "clk: " TTFMT ".%03d ms\n", t / 1000, (int) (t % 1000)); + mnstr_printf(toConsole, "clk: %" PRId64 ".%03d ms\n", t / 1000, (int) (t % 1000)); return; } t /= 1000; if (t / 1000 < 60) { - mnstr_printf(toConsole, "clk: " TTFMT ".%02d sec\n", t / 1000, (int) ((t % 1000) / 100)); + mnstr_printf(toConsole, "clk: %" PRId64 ".%02d sec\n", t / 1000, (int) ((t % 1000) / 100)); return; } t /= 1000; - mnstr_printf(toConsole, "clk: " TTFMT ":%02d min\n", t / 60, (int) (t % 60)); + mnstr_printf(toConsole, "clk: %" PRId64 ":%02d min\n", t / 60, (int) (t % 60)); return; } /* for performance measures we use milliseconds as the base */ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list