Dan Smith wrote:
# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1199731790 28800
# Node ID d5ac4e8e1c2b14c00a4edc96b9909471fef3b5b7
# Parent b64e8fda92bffa03bde3dc8c05dc320e2a515de3
Fix 32-bit compile issue in xml_parse_test
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r b64e8fda92bf -r d5ac4e8e1c2b libxkutil/xml_parse_test.c
--- a/libxkutil/xml_parse_test.c Mon Jan 07 10:46:13 2008 -0800
+++ b/libxkutil/xml_parse_test.c Mon Jan 07 10:49:50 2008 -0800
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <inttypes.h>
#include <libvirt/libvirt.h>
@@ -12,7 +13,7 @@ static void print_value(FILE *d, const c
static void print_u64(FILE *d, const char *name, uint64_t val)
{
- fprintf(d, "%-15s: %lu\n", name, val);
+ fprintf(d, "%-15s: %" PRIu64 "\n", name, val);
}
Looks reasonable. =) +1
--
Kaitlin Rupert
IBM Linux Technology Center
karupert(a)us.ibm.com