X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_tool.c;h=f6e302f923dc4ecdf6dc076a642fc02a9eee6da1;hb=f515ade46f2325b0496f2262647377b571ca2347;hp=2e59b8e008a66cac6e6b74061a8bb317ebaf61a2;hpb=3e7c314a66604045bd1ccd847d5cea71126eb3d0;p=rrdtool-all.git diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index 2e59b8e0..f6e302f9 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -725,10 +725,10 @@ int HandleInputLine( XML_ENCODING); printf("<%s>\n", ROOT_TAG); printf(" <%s>\n", META_TAG); - printf(" <%s>%lu\n", META_START_TAG, - (unsigned long) start + step, META_START_TAG); + printf(" <%s>%lld\n", META_START_TAG, + (long long int) start + step, META_START_TAG); printf(" <%s>%lu\n", META_STEP_TAG, step, META_STEP_TAG); - printf(" <%s>%lu\n", META_END_TAG, (unsigned long) end, + printf(" <%s>%lld\n", META_END_TAG, (long long int) end, META_END_TAG); printf(" <%s>%lu\n", META_ROWS_TAG, row_cnt, META_ROWS_TAG); @@ -749,7 +749,7 @@ int HandleInputLine( printf(" <%s>\n", DATA_TAG); for (ti = start + step; ti <= end; ti += step) { printf(" <%s>", DATA_ROW_TAG); - printf("<%s>%lu", COL_TIME_TAG, ti, COL_TIME_TAG); + printf("<%s>%lld", COL_TIME_TAG, (long long int)ti, COL_TIME_TAG); for (j = 0; j < col_cnt; j++) { rrd_value_t newval = DNAN;