stat: fix printf format specifier
authorSitsofe Wheeler <sitsofe@yahoo.com>
Mon, 26 Jun 2017 23:38:59 +0000 (00:38 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Mon, 26 Jun 2017 23:46:54 +0000 (00:46 +0100)
commit29eb371b1d2b436e252c6e3e20981d88f7b1cd3f
tree59a5509d62b83b605e7ba634324dcb02c34311ef
parent658f35259b6cc3f0333a8af593dfc3189bcd4eaf
stat: fix printf format specifier

54c05828da413f6b4f9eec800a30624c453a4d90 introduced the printing of the
number of samples but on 64 bit macOS with clang the format specifier
generates warnings like:

stat.c:502:4: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t'
      (aka 'unsigned long long') [-Wformat]
                        (&ts->bw_stat[ddir])->samples);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fix this by using the PRIu64 macro.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
stat.c