Hi! I've noticed we talk about %Ns even when that isn't supported and we actually only support %.Ns which the comment describes.
Committed to trunk as obvious. 2025-04-09 Jakub Jelinek <ja...@redhat.com> * pretty-print.cc (pretty_printer::format): Use %.Ns instead of %Ns in function comment. --- gcc/pretty-print.cc.jj 2025-04-08 14:08:59.815162645 +0200 +++ gcc/pretty-print.cc 2025-04-09 19:04:38.762825842 +0200 @@ -1640,7 +1640,7 @@ push_back_any_text (pp_token_list *tok_l %@: 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. Jakub