forked from Imagelibrary/binutils-gdb
Make print_command_trace varargs
I noticed some code in execute_control_command_1 that could be simplified by making print_command_trace a printf-like function. This patch makes this change. ChangeLog 2018-05-04 Tom Tromey <tom@tromey.com> * top.c (execute_command): Update. * cli/cli-script.h (print_command_lines): Now varargs. * cli/cli-script.c (print_command_lines): Now varargs. (execute_control_command_1) <case while_control, case if_control>: Update.
This commit is contained in:
@@ -148,7 +148,8 @@ extern std::string insert_user_defined_cmd_args (const char *line);
|
||||
|
||||
/* Exported to top.c */
|
||||
|
||||
extern void print_command_trace (const char *cmd);
|
||||
extern void print_command_trace (const char *cmd, ...)
|
||||
ATTRIBUTE_PRINTF (1, 2);
|
||||
|
||||
/* Exported to event-top.c */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user