aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@pfeifer.com>2019-01-20 15:09:02 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2019-01-20 15:09:02 +0000
commit5e2a72419968999fe9d88c4ea1bd7523a3bfff65 (patch)
tree5c6adb5348e8ac151531ea3e8332650a63c45681 /libbacktrace
parent5bdebb51a649d04569324f4f1124d5e64a3cbff7 (diff)
downloadgcc-5e2a72419968999fe9d88c4ea1bd7523a3bfff65.zip
gcc-5e2a72419968999fe9d88c4ea1bd7523a3bfff65.tar.gz
gcc-5e2a72419968999fe9d88c4ea1bd7523a3bfff65.tar.bz2
* allocfail.c (main): Increase portability of printf statement.
From-SVN: r268105
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog4
-rw-r--r--libbacktrace/allocfail.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index cf44db6..131c9fe 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -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
diff --git a/libbacktrace/allocfail.c b/libbacktrace/allocfail.c
index dff2968..d3ee07d 100644
--- a/libbacktrace/allocfail.c
+++ b/libbacktrace/allocfail.c
@@ -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);
}