[pushed] Fix use of 'printf' in gdbtypes.c

Message ID 20220103180539.3563810-1-tromey@adacore.com
State New
Headers show
Series
  • [pushed] Fix use of 'printf' in gdbtypes.c
Related show

Commit Message

Simon Marchi via Gdb-patches Jan. 3, 2022, 6:05 p.m.
An earlier patch of mine, commit 64b7cc50 ("Remove
gdb_print_host_address") inadvertently changed a function in
gdbtypes.c to use printf rather than printf_filtered.  This patch
fixes the problem.
---
 gdb/gdbtypes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1

Patch

diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index ab1c9d43318..8af96c79e6c 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -5312,7 +5312,7 @@  recursive_dump_type (struct type *type, int spaces)
 	}
       printf_filtered ("\n");
     }
-  printf ("%s\n", host_address_to_string (type->fields ()));
+  printf_filtered ("%s\n", host_address_to_string (type->fields ()));
   for (idx = 0; idx < type->num_fields (); idx++)
     {
       if (type->code () == TYPE_CODE_ENUM)