diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-01 12:08:15 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-07-15 09:31:18 -0600 |
commit | 33eca68072e73d984fc139dde45b8140b94757cb (patch) | |
tree | febcb3372032352babcf541f9bcb11f45eb771f3 /gdb/breakpoint.c | |
parent | ca8d69beb1024316af8dec571584437d613f40d2 (diff) | |
download | fsf-binutils-gdb-33eca68072e73d984fc139dde45b8140b94757cb.zip fsf-binutils-gdb-33eca68072e73d984fc139dde45b8140b94757cb.tar.gz fsf-binutils-gdb-33eca68072e73d984fc139dde45b8140b94757cb.tar.bz2 |
Use field_string in more places
This replaces uses of field_fmt with a "%s" format string to use
field_string instead. Also, one use of "%9lx" is replaced with a call
to phex_nz; the '9' is dropped as it is implicit in the field width.
2019-07-15 Tom Tromey <tromey@adacore.com>
* mi/mi-main.c (list_available_thread_groups): Use field_string.
* mi/mi-interp.c (mi_memory_changed): Use field_string.
* target.c (flash_erase_command): Use field_string.
* infrun.c (print_signal_received_reason): Use field_string.
* i386-tdep.c (i386_mpx_print_bounds): Use field_string.
* breakpoint.c (maybe_print_thread_hit_breakpoint): Use
field_string.
* ada-tasks.c (print_ada_task_info): Use field_string.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 87ec7b8..b345379 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -4483,13 +4483,13 @@ maybe_print_thread_hit_breakpoint (struct ui_out *uiout) struct thread_info *thr = inferior_thread (); uiout->text ("Thread "); - uiout->field_fmt ("thread-id", "%s", print_thread_id (thr)); + uiout->field_string ("thread-id", print_thread_id (thr)); name = thr->name != NULL ? thr->name : target_thread_name (thr); if (name != NULL) { uiout->text (" \""); - uiout->field_fmt ("name", "%s", name); + uiout->field_string ("name", name); uiout->text ("\""); } |