diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-10-01 17:01:29 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-10-09 17:53:23 +0200 |
commit | 759b204be33fa8485c9e28038ee029a49e2e9d3f (patch) | |
tree | c590185bee7022f9bc3944314f578ce141f0fa32 /proto/perf/perf.c | |
parent | cc95b4594ac924b40325a4f1adcae5312179db40 (diff) |
Lib: Support for 64-bit numbers in bvsnprintf()
Use 'l' for s64/u64 instead of for long/ulong, as that is much more
useful. Also make number() correct with regard to signed/unsigned
typecasts.
Diffstat (limited to 'proto/perf/perf.c')
-rw-r--r-- | proto/perf/perf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/perf/perf.c b/proto/perf/perf.c index d48ad751..dfbd0884 100644 --- a/proto/perf/perf.c +++ b/proto/perf/perf.c @@ -192,7 +192,7 @@ perf_loop(void *data) s64 withdrawtime = timediff(&ts_update, &ts_withdraw); if (updatetime NS >= p->threshold_min) - PLOG("exp=%u times: gen=%lu update=%lu withdraw=%lu", + PLOG("exp=%u times: gen=%ld update=%ld withdraw=%ld", p->exp, gentime, updatetime, withdrawtime); if (updatetime NS < p->threshold_max) |