]> granicus.if.org Git - strace/commit
loop: fix printing of the reserved field array items
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 1 Jan 2017 18:13:07 +0000 (21:13 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 4 Jan 2017 13:22:19 +0000 (13:22 +0000)
commit7ba63db908e5aef711e6b4261e00d1cef5a912e3
tree44839195cb5ea9783ab92e2a8e3e525aa90e8cfe
parent589e3285d5780c6e03ade8c9884f1684e68c2fd7
loop: fix printing of the reserved field array items

They are of char type, so "hh" length modifier should be used (otherwise
they are printed incorrectly as they are sign extended implicitly when
passed as printf arguments in case char is a signed type which is true
for most compilers).

* loop.c (decode_loop_info): Change "%#x" printf qualifier to "%#hhx"
in printing routine for array elements of the "reserved" field of
loop_info structure.
loop.c