Use filtered output in language_info
authorTom Tromey <tom@tromey.com>
Mon, 27 Dec 2021 01:17:55 +0000 (18:17 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 5 Jan 2022 18:36:22 +0000 (11:36 -0700)
Change language_info to use filtered output.  This is ok because the
sole caller uses filtered output elsewhere, and because this function
calls show_language_command, which also uses filtered output.

gdb/language.c

index 132ff76981766210404f67afdef17693806b8502..0e6a1a4bcdb6c6e6eb674ef25532f6f7ad027e24 100644 (file)
@@ -383,7 +383,7 @@ language_info ()
     return;
 
   expected_language = current_language;
-  printf_unfiltered (_("Current language:  %s\n"), language);
+  printf_filtered (_("Current language:  %s\n"), language);
   show_language_command (NULL, 1, NULL, NULL);
 }
 \f