intel/genxml: Make assert in gen_pack_header print a message.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 May 2018 18:23:27 +0000 (11:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2018 06:06:52 +0000 (23:06 -0700)
commit33906eeaca917506cfa4297913c386121357531e
treecbd42398034ecaa7f5724108f6c4b50512c66cd8
parent2dc29e095f9daffd9da722919fa08ca912ab8f04
intel/genxml: Make assert in gen_pack_header print a message.

Python's assert can take both a condition and a string, which will cause
it to print the string if the assertion trips.  (You can't use parens as
that creates a tuple.)  Doing "condition and string" works in C, but
doesn't have the desired effect in Python.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/genxml/gen_pack_header.py