intel/tools/error: Use do-while for field iterator loops.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Nov 2017 08:12:04 +0000 (00:12 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Nov 2017 01:11:02 +0000 (17:11 -0800)
commit7049c3865530f9157bce6f18a156b855d9290615
tree57b3bdf6177260c9ca20aa8819f2637a8efa666a
parent8b749ee0eaf935481ee37697e5a28b278d616885
intel/tools/error: Use do-while for field iterator loops.

while loops skip the first field of the instruction/structure, which
is not what the code intended.  It works out because the field we're
looking for doesn't happen to be first, but we ought to do it right
regardless.

Found while writing the next patch, where Kernel Start Pointer is
the first field of INTERFACE_DESCRIPTOR_DATA.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c