Dmitry Timoshkov : comctl32/tests: Print id value as decimal.

Alexandre Julliard julliard at winehq.org
Mon Feb 21 16:15:11 CST 2022


Module: wine
Branch: master
Commit: a99c1ee76401ac25142b0eb1a9590a7391c4f1e1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a99c1ee76401ac25142b0eb1a9590a7391c4f1e1

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Feb 11 17:24:31 2022 +0300

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 at baikal.ru>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/msg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/msg.h b/dlls/comctl32/tests/msg.h
index 7337c724a5c..8ba2efddb0a 100644
--- a/dlls/comctl32/tests/msg.h
+++ b/dlls/comctl32/tests/msg.h
@@ -261,14 +261,14 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index,
                         failcount++;
                         dump++;
                         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);
                     }
                 }
                 else
                 {
                     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);
                     if (expected->id != actual->id) dump++;
                 }




More information about the wine-cvs mailing list