mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 22:36:24 +00:00
lib: Use igt_assert_eq() to check for crc component count
It's nice to see just how many components the crc claims to have when the count don't match what we expect. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
793aff199f
commit
23aa051369
@ -280,11 +280,10 @@ char *igt_crc_to_string(igt_crc_t *crc)
|
||||
{
|
||||
char buf[128];
|
||||
|
||||
if (crc->n_words == 5)
|
||||
sprintf(buf, "%08x %08x %08x %08x %08x", crc->crc[0],
|
||||
crc->crc[1], crc->crc[2], crc->crc[3], crc->crc[4]);
|
||||
else
|
||||
igt_assert(0);
|
||||
igt_assert_eq(crc->n_words, 5);
|
||||
|
||||
sprintf(buf, "%08x %08x %08x %08x %08x", crc->crc[0],
|
||||
crc->crc[1], crc->crc[2], crc->crc[3], crc->crc[4]);
|
||||
|
||||
return strdup(buf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user