]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Use %u to print stats returned by mallinfo(3)
authorTobias Brunner <tobias@strongswan.org>
Fri, 13 Mar 2015 14:20:08 +0000 (15:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 13 Mar 2015 14:25:53 +0000 (15:25 +0100)
References #886.

src/libcharon/plugins/stroke/stroke_list.c

index 490983100e44c02d5c94f055c9332f328c90a228..8afd7dbd956150cef02045741d6682314b3b8033 100644 (file)
@@ -497,7 +497,7 @@ METHOD(stroke_list_t, status, void,
                {
                        struct mallinfo mi = mallinfo();
 
-                       fprintf(out, "  malloc: sbrk %d, mmap %d, used %d, free %d\n",
+                       fprintf(out, "  malloc: sbrk %u, mmap %u, used %u, free %u\n",
                                    mi.arena, mi.hblkhd, mi.uordblks, mi.fordblks);
                }
 #endif /* HAVE_MALLINFO */