From 7fb048a2ee38bbc85ba0e96e2932cb0cb1f7381e Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 26 Nov 2016 22:06:07 -0500 Subject: Remove verbosity from ui_out_message and friends That concept is never actually used, so it's just a burden. Removing it facilitates the refactoring in upcoming patches. gdb/ChangeLog: * mi/mi-out.c (mi_message): Remove verbosity argument. * ada-tasks.c (print_ada_task_info, info_task, task_command): Update call. * auto-load.c (auto_load_info_scripts): Likewise. * breakpoint.c (breakpoint_1, watchpoints_info, tracepoints_info): Likewise. * cli-out.c (cli_message): Remove verbosity argument. * inferior.c (print_inferior): Update call. * linux-thread-db.c (info_auto_load_libthread_db): Likewise. * probe.c (info_probes_for_ops): Likewise. * skip.c (skip_info): Likewise. * solib.c (info_sharedlibrary_command): Likewise. * symfile.c (load_progress): Likewise. * thread.c (print_thread_info_1): Likewise. * ui-out.c (uo_message, ui_out_message): Remove verbosity argument. (ui_out_get_verblvl): Remove. * ui-out.h (ui_out_message): Remove verbosity argument. (ui_out_get_verblvl): Remove. (message_ftype): Remove verbosity argument. --- gdb/ui-out.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gdb/ui-out.h') diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 569f762..e251d77 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -119,16 +119,13 @@ extern void ui_out_spaces (struct ui_out *uiout, int numspaces); extern void ui_out_text (struct ui_out *uiout, const char *string); -extern void ui_out_message (struct ui_out *uiout, int verbosity, - const char *format, ...) - ATTRIBUTE_PRINTF (3, 4); +extern void ui_out_message (struct ui_out *uiout, const char *format, ...) + ATTRIBUTE_PRINTF (2, 3); extern void ui_out_wrap_hint (struct ui_out *uiout, const char *identstring); extern void ui_out_flush (struct ui_out *uiout); -extern int ui_out_get_verblvl (struct ui_out *uiout); - extern int ui_out_test_flags (struct ui_out *uiout, int mask); extern int ui_out_query_field (struct ui_out *uiout, int colno, @@ -183,9 +180,9 @@ typedef void (field_fmt_ftype) (struct ui_out * uiout, int fldno, int width, typedef void (spaces_ftype) (struct ui_out * uiout, int numspaces); typedef void (text_ftype) (struct ui_out * uiout, const char *string); -typedef void (message_ftype) (struct ui_out * uiout, int verbosity, +typedef void (message_ftype) (struct ui_out * uiout, const char *format, va_list args) - ATTRIBUTE_FPTR_PRINTF(3,0); + ATTRIBUTE_FPTR_PRINTF(2,0); typedef void (wrap_hint_ftype) (struct ui_out * uiout, const char *identstring); typedef void (flush_ftype) (struct ui_out * uiout); typedef int (redirect_ftype) (struct ui_out * uiout, -- cgit v1.1