comctl32/tests: Print id value as decimal.

All the notification codes (printed as an id) have negative base value
(SBN_, UDN_, HDN_, BCN_, TBN_, TTN_, RBN_, TRBN_, PGN_, TVN_, LVN_, TCN_,
CBEN_, IPN_, MCN_, DTN_), and printing them as decimal helps to quickly
identify the corresponding notification value in cases when an id in
the message sequence doesn't match. Custom ids in the message sequences
have small numbers (0, 1, 2, ...), so they also get printed correctly.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2022-02-11 17:24:31 +03:00 committed by Alexandre Julliard
parent bf42dca35f
commit a99c1ee764
1 changed files with 2 additions and 2 deletions

View File

@ -261,14 +261,14 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index,
failcount++; failcount++;
dump++; dump++;
ok_(file, line) (FALSE, ok_(file, line) (FALSE,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x\n", "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id); context, expected->message, expected->id, actual->id);
} }
} }
else else
{ {
ok_(file, line) (expected->id == actual->id, ok_(file, line) (expected->id == actual->id,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x\n", "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id); context, expected->message, expected->id, actual->id);
if (expected->id != actual->id) dump++; if (expected->id != actual->id) dump++;
} }