diff options
author | Tom de Vries <tdevries@suse.de> | 2022-01-04 10:24:36 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-01-04 10:24:36 +0100 |
commit | f1e044bbb627d6176c01136ef3ba60f1bd35e2a3 (patch) | |
tree | 585e76f92491a0493480028e5e9e7f57117c6cea | |
parent | 125ff8197df74cd3108e36d271267c798cd0e15f (diff) | |
download | gdb-f1e044bbb627d6176c01136ef3ba60f1bd35e2a3.zip gdb-f1e044bbb627d6176c01136ef3ba60f1bd35e2a3.tar.gz gdb-f1e044bbb627d6176c01136ef3ba60f1bd35e2a3.tar.bz2 |
[gdb/build] Fix build breaker in gdb/cli/cli-logging.c
Fix build breaker in gdb/cli/cli-logging.c:
...
gdb/cli/cli-logging.c: In function \
‘void show_logging_enabled(ui_file*, int, cmd_list_element*, const char*)’:
gdb/gdbsupport/gdb_locale.h:28:28: error: cannot convert ‘char*’ to ‘ui_file*’
28 | # define _(String) gettext (String)
| ~~~~~~~~^~~~~~~~
| |
| char*
gdb/cli/cli-logging.c:202:25: note: in expansion of macro ‘_’
202 | fprintf_unfiltered (_("on: Logging is enabled.\n"));
| ^
...
Build and tested on x86_64-linux.
Fixes: 45aec4e5ed8 ("[gdb/cli] Improve show logging output")
-rw-r--r-- | gdb/cli/cli-logging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c index 193a873..ea486d8 100644 --- a/gdb/cli/cli-logging.c +++ b/gdb/cli/cli-logging.c @@ -199,9 +199,9 @@ show_logging_enabled (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { if (logging_enabled) - fprintf_unfiltered (_("on: Logging is enabled.\n")); + fprintf_unfiltered (file, _("on: Logging is enabled.\n")); else - fprintf_unfiltered (_("off: Logging is disabled.\n")); + fprintf_unfiltered (file, _("off: Logging is disabled.\n")); } void _initialize_cli_logging (); |