mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
lib/igt_* Use igt macros in igt libaries
Except in igt_core since that would lead to some hilarious recursions. v2: Don't fflush any more, spotted by Chris. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
+7
-7
@@ -200,10 +200,10 @@ bool igt_crc_is_null(igt_crc_t *crc)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < crc->n_words; i++) {
|
||||
if (crc->crc[i] == 0xffffffff)
|
||||
igt_warn("Suspicious CRC: it looks like the CRC "
|
||||
"read back was from a register in a powered "
|
||||
"down well\n");
|
||||
igt_warn_on_f(crc->crc[i] == 0xffffffff,
|
||||
"Suspicious CRC: it looks like the CRC "
|
||||
"read back was from a register in a powered "
|
||||
"down well\n");
|
||||
if (crc->crc[i])
|
||||
return false;
|
||||
}
|
||||
@@ -731,7 +731,7 @@ void igt_set_stop_rings(enum stop_ring_flags flags)
|
||||
|
||||
stop_rings_write(flags);
|
||||
current = igt_get_stop_rings();
|
||||
if (current != flags)
|
||||
igt_warn("i915_ring_stop readback mismatch 0x%x vs 0x%x\n",
|
||||
flags, current);
|
||||
igt_warn_on_f(current != flags,
|
||||
"i915_ring_stop readback mismatch 0x%x vs 0x%x\n",
|
||||
flags, current);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user