Skip to content

Commit

Permalink
htable.cc: use format macro constants from inttypes.h
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Nov 5, 2019
1 parent aa70b18 commit 2db9df1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/lib/htable.cc
Expand Up @@ -40,6 +40,7 @@
* Kern Sibbald, July MMIII
*/

#include <cinttypes>
#include "include/hostconfig.h"

#ifdef HAVE_HPUX_OS
Expand Down Expand Up @@ -256,7 +257,7 @@ void htable::stats()
printf("buckets=%d num_items=%d max_items=%d\n", buckets, num_items,
max_items);
printf("max hits in a bucket = %d\n", max);
printf("total bytes malloced = %lu\n", total_size);
printf("total bytes malloced = %" PRIu64 "\n", total_size);
printf("total blocks malloced = %d\n", blocks);
}

Expand Down

0 comments on commit 2db9df1

Please sign in to comment.