diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-06 12:41:28 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-06 12:45:44 +0100 |
commit | d35cc3ea8c0023eb8aadf3e946b1c759c6e29b3a (patch) | |
tree | a836ed5a44708303920c22787b0afe3553185e66 | |
parent | fb9c9e3adcc18b137b8931bc4f6fb05ca4d19863 (diff) |
aux: Squelch warning when emitting progress indicator
commit 1649ef0d1f5c0e4f995a437bd24f1574a8b5100f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Tue Aug 26 15:26:21 2014 +0200
lib/igt_* Use igt macros in igt libaries
went a little too far here as the replacement macro was too clever.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | lib/igt_aux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c index 05cb4bd1..180c2742 100644 --- a/lib/igt_aux.c +++ b/lib/igt_aux.c @@ -241,9 +241,9 @@ void igt_progress(const char *header, uint64_t i, uint64_t total) divider = 1; /* only bother updating about every 0.5% */ - igt_warn_on_f(i % (total / divider) == 0 || i + 1 >= total, - "\r%s%3llu%%", header, - (long long unsigned)i * 100 / total); + if (i % (total / divider) == 0) + igt_warn("\r%s%3llu%%", header, + (long long unsigned)i * 100 / total); } /* mappable aperture trasher helper */ |