diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-18 15:47:56 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-18 15:47:56 -0400 |
commit | 1d143c36eedc0f0b124e6aa6fb3b98b1e6ff74b0 (patch) | |
tree | 8393c7c125636bccd696cb28dae472d06115ae8c /gdb/unittests | |
parent | ce1e8424c69793139ec8d2a60c4a21ab136ae9e0 (diff) | |
download | gdb-1d143c36eedc0f0b124e6aa6fb3b98b1e6ff74b0.zip gdb-1d143c36eedc0f0b124e6aa6fb3b98b1e6ff74b0.tar.gz gdb-1d143c36eedc0f0b124e6aa6fb3b98b1e6ff74b0.tar.bz2 |
format_pieces-selftests.c: Silence ARI warnings
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.
Diffstat (limited to 'gdb/unittests')
-rw-r--r-- | gdb/unittests/format_pieces-selftests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/unittests/format_pieces-selftests.c b/gdb/unittests/format_pieces-selftests.c index 6d11a9c..8f63247 100644 --- a/gdb/unittests/format_pieces-selftests.c +++ b/gdb/unittests/format_pieces-selftests.c @@ -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), }); } |