summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b01cbe)
raw | patch | inline | side by side (parent: 8b01cbe)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:26:46 +0000 (14:26 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:26:46 +0000 (14:26 +0000) |
src/rrd_dump.c | patch | blob | history | |
src/rrd_tool.c | patch | blob | history |
diff --git a/src/rrd_dump.c b/src/rrd_dump.c
index baf560c721342854342ddc724fe096e66895daed..7a904f3401907604820767af9cb63aa4f1256532 100644 (file)
--- a/src/rrd_dump.c
+++ b/src/rrd_dump.c
#else
# error "Need strftime"
#endif
- fprintf(out_file, "\t<lastupdate> %ld </lastupdate> <!-- %s -->\n\n",
- rrd.live_head->last_up, somestring);
+ fprintf(out_file, "\t<lastupdate> %lu </lastupdate> <!-- %s -->\n\n",
+ (unsigned long) rrd.live_head->last_up, somestring);
for (i = 0; i < rrd.stat_head->ds_cnt; i++) {
fprintf(out_file, "\t<ds>\n");
fprintf(out_file, "\t\t<name> %s </name>\n", rrd.ds_def[i].ds_nam);
diff --git a/src/rrd_tool.c b/src/rrd_tool.c
index 9d65ecd6bea13660fdefd2a3d60ff713b093c2bc..b91d96f54116a17f2b5e9ef5048f4be5e746970b 100644 (file)
--- a/src/rrd_tool.c
+++ b/src/rrd_tool.c
XML_ENCODING);
printf("<%s>\n", ROOT_TAG);
printf(" <%s>\n", META_TAG);
- printf(" <%s>%lu</%s>\n", META_START_TAG, start + step,
+ printf(" <%s>%lu</%s>\n", META_START_TAG, (unsigned long) start + step,
META_START_TAG);
printf(" <%s>%lu</%s>\n", META_STEP_TAG, step, META_STEP_TAG);
- printf(" <%s>%lu</%s>\n", META_END_TAG, end, META_END_TAG);
+ printf(" <%s>%lu</%s>\n", META_END_TAG, (unsigned long) end, META_END_TAG);
printf(" <%s>%lu</%s>\n", META_ROWS_TAG, row_cnt,
META_ROWS_TAG);
printf(" <%s>%lu</%s>\n", META_COLS_TAG, col_cnt,