[Libvirt-cim] [PATCH] Fix 32-bit compile issue in xml_parse_test

Dan Smith danms at us.ibm.com
Mon Jan 7 17:50:27 UTC 2008


# HG changeset patch
# User Dan Smith <danms at 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 at 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);
 }
 
 static void print_os(struct domain *dom,




More information about the Libvirt-cim mailing list