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.
This commit is contained in:
parent
ce1e8424c6
commit
1d143c36ee
|
@ -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>
|
2018-05-18 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* c-typeprint.c (maybe_print_hole): New function.
|
* c-typeprint.c (maybe_print_hole): New function.
|
||||||
|
|
|
@ -48,12 +48,12 @@ test_escape_sequences ()
|
||||||
static void
|
static void
|
||||||
test_format_specifier ()
|
test_format_specifier ()
|
||||||
{
|
{
|
||||||
check ("Hello %d%llx%%d",
|
check ("Hello %d%llx%%d", /* ARI: %ll */
|
||||||
{
|
{
|
||||||
format_piece ("Hello ", literal_piece),
|
format_piece ("Hello ", literal_piece),
|
||||||
format_piece ("%d", int_arg),
|
format_piece ("%d", int_arg),
|
||||||
format_piece ("", literal_piece),
|
format_piece ("", literal_piece),
|
||||||
format_piece ("%llx", long_long_arg),
|
format_piece ("%llx", long_long_arg), /* ARI: %ll */
|
||||||
format_piece ("%%d", literal_piece),
|
format_piece ("%%d", literal_piece),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue