From: Gerald Pfeifer Date: Sun, 20 Jan 2019 15:09:02 +0000 (+0000) Subject: * allocfail.c (main): Increase portability of printf statement. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e2a72419968999fe9d88c4ea1bd7523a3bfff65;p=gcc.git * allocfail.c (main): Increase portability of printf statement. From-SVN: r268105 --- 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); }