mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 14:45:46 +00:00
aux: Squelch warning when emitting progress indicator
commit 1649ef0d1f
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>
This commit is contained in:
+2
-2
@@ -241,8 +241,8 @@ void igt_progress(const char *header, uint64_t i, uint64_t total)
|
|||||||
divider = 1;
|
divider = 1;
|
||||||
|
|
||||||
/* only bother updating about every 0.5% */
|
/* only bother updating about every 0.5% */
|
||||||
igt_warn_on_f(i % (total / divider) == 0 || i + 1 >= total,
|
if (i % (total / divider) == 0)
|
||||||
"\r%s%3llu%%", header,
|
igt_warn("\r%s%3llu%%", header,
|
||||||
(long long unsigned)i * 100 / total);
|
(long long unsigned)i * 100 / total);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user