]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Use %x to print uint32 as long ints are 64-bit long on x64 Linux
authorTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 16:09:08 +0000 (18:09 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 28 Sep 2012 16:09:08 +0000 (18:09 +0200)
src/libcharon/plugins/smp/smp.c

index 32fc0c0e13aecadd6b9aad2053909e22ccdf3e2c..db52952309a6d166d0f7ab9e1c653f0a4aa81a2e 100644 (file)
@@ -163,7 +163,7 @@ static void write_childend(xmlTextWriterPtr writer, child_sa_t *child, bool loca
 {
        linked_list_t *list;
 
-       xmlTextWriterWriteFormatElement(writer, "spi", "%lx",
+       xmlTextWriterWriteFormatElement(writer, "spi", "%x",
                                                                        htonl(child->get_spi(child, local)));
        list = child->get_traffic_selectors(child, local);
        write_networks(writer, "networks", list);