format_pieces-selftests.c: Silence ARI warnings
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 18 May 2018 19:47:56 +0000 (15:47 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 18 May 2018 19:47:56 +0000 (15:47 -0400)
Silence this:

unittests/format_pieces-selftests.c:51: warning: code: Do not use printf("%ll"), instead use printf("%s",phex()) to dump a `long long' value
unittests/format_pieces-selftests.c:56: warning: code: Do not use printf("%ll"), instead use printf("%s",phex()) to dump a `long long' value

gdb/ChangeLog:

* unittests/format_pieces-selftests.c (test_format_specifier):
Add ARI comments.

gdb/ChangeLog
gdb/unittests/format_pieces-selftests.c

index d4d00f8328ed255e2881f53b69e6c0c259e6db16..57edb23340957a5e71487f593c97f57e327c3774 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * unittests/format_pieces-selftests.c (test_format_specifier):
+       Add ARI comments.
+
 2018-05-18  Tom Tromey  <tom@tromey.com>
 
        * c-typeprint.c (maybe_print_hole): New function.
index 6d11a9cf1d693267772e457db1d94522f6ef6b9a..8f63247931998d7f04f8def958bf0ff18a2d5f3c 100644 (file)
@@ -48,12 +48,12 @@ test_escape_sequences ()
 static void
 test_format_specifier ()
 {
-  check ("Hello %d%llx%%d",
+  check ("Hello %d%llx%%d", /* ARI: %ll */
     {
       format_piece ("Hello ", literal_piece),
       format_piece ("%d", int_arg),
       format_piece ("", literal_piece),
-      format_piece ("%llx", long_long_arg),
+      format_piece ("%llx", long_long_arg), /* ARI: %ll */
       format_piece ("%%d", literal_piece),
     });
 }