From f7738c36710f8084e24cbb1d92acf3b6e5e83ea9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 9 Apr 2025 22:07:33 +0200 Subject: [PATCH] pretty-print: Fix format specifier description I've noticed we talk about %Ns even when that isn't supported and we actually only support %.Ns which the comment describes. 2025-04-09 Jakub Jelinek * pretty-print.cc (pretty_printer::format): Use %.Ns instead of %Ns in function comment. --- gcc/pretty-print.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/pretty-print.cc b/gcc/pretty-print.cc index 79c7bc2b662..abd6c0b528f 100644 --- a/gcc/pretty-print.cc +++ b/gcc/pretty-print.cc @@ -1640,7 +1640,7 @@ push_back_any_text (pp_token_list *tok_list, %@: diagnostic_event_id_ptr, for which event_id->known_p () must be true. %.*s: a substring the length of which is specified by an argument integer. - %Ns: likewise, but length specified as constant in the format string. + %.Ns: likewise, but length specified as constant in the format string. Flag 'q': quote formatted text (must come immediately after '%'). %Z: Requires two arguments - array of int, and len. Prints elements of the array.