* allocfail.c (main): Increase portability of printf statement.
authorGerald Pfeifer <gerald@pfeifer.com>
Sun, 20 Jan 2019 15:09:02 +0000 (15:09 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Sun, 20 Jan 2019 15:09:02 +0000 (15:09 +0000)
From-SVN: r268105

libbacktrace/ChangeLog
libbacktrace/allocfail.c

index cf44db69e2d95f13e881051b64b8e99598d853a3..131c9fee37d10d89740ebe51b4cc390c10598bc7 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-20  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * allocfail.c (main): Increase portability of printf statement.
+
 2019-01-18  Ian Lance Taylor  <iant@golang.org>
 
        PR libbacktrace/88890
index dff2968f5ca3de8f439485f62fb9aaad1c238cec..d3ee07d712119087946a8a92ac229f7c7ab2d06f 100644 (file)
@@ -130,7 +130,7 @@ main (int argc, char **argv)
 #endif
 
   if (argc == 1)
-    fprintf (stderr, "%lu\n", get_nr_allocs ());
+    fprintf (stderr, "%llu\n", (long long unsigned) get_nr_allocs ());
 
   exit (failures ? EXIT_FAILURE : EXIT_SUCCESS);
 }