summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in1
-rw-r--r--src/mkid.c11
2 files changed, 9 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 10913d3..7b082c6 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -56,6 +56,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alloca.m4 \
$(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \
$(top_srcdir)/m4/gnulib-comp.m4 $(top_srcdir)/m4/iconv.m4 \
$(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \
+ $(top_srcdir)/m4/intmax_t.m4 $(top_srcdir)/m4/inttostr.m4 \
$(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \
$(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
diff --git a/src/mkid.c b/src/mkid.c
index ea3f82e..147211f 100644
--- a/src/mkid.c
+++ b/src/mkid.c
@@ -35,6 +35,7 @@
#include "error.h"
#include "alloca.h"
#include <limits.h>
+#include "inttostr.h"
#include "iduglobal.h"
char* dirname(char* path);
@@ -385,10 +386,14 @@ scan_files (struct idhead *idhp)
n = 1024*1024;
hash_init (&token_table, n, token_hash_1, token_hash_2, token_hash_cmp);
- if (verbose_flag)
- printf ("files=%ld, largest=" OFF_FMT ", slots=%lu\n",
+ if (verbose_flag) {
+ char offstr[INT_BUFSIZE_BOUND(off_t)];
+ offtostr(largest_member_file, offstr);
+
+ printf ("files=%ld, largest=%s, slots=%lu\n",
idhp->idh_member_file_table.ht_fill,
- largest_member_file, token_table.ht_size);
+ offstr, token_table.ht_size);
+ }
init_hits_signature (0);
init_summary ();
obstack_init (&tokens_obstack);