From 5e2a72419968999fe9d88c4ea1bd7523a3bfff65 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Sun, 20 Jan 2019 15:09:02 +0000 Subject: [PATCH] * allocfail.c (main): Increase portability of printf statement. From-SVN: r268105 --- libbacktrace/ChangeLog | 4 ++++ libbacktrace/allocfail.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index cf44db69e2d..131c9fee37d 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2019-01-20 Gerald Pfeifer + + * allocfail.c (main): Increase portability of printf statement. + 2019-01-18 Ian Lance Taylor PR libbacktrace/88890 diff --git a/libbacktrace/allocfail.c b/libbacktrace/allocfail.c index dff2968f5ca..d3ee07d7121 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); } -- 2.30.2