show_logging_filename (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
- fprintf_filtered (file, _("The current logfile is \"%ps\".\n"),
- styled_string (file_name_style.style (), value));
+ gdb_printf (file, _("The current logfile is \"%ps\".\n"),
+ styled_string (file_name_style.style (), value));
}
static bool logging_overwrite;
struct cmd_list_element *c, const char *value)
{
if (logging_overwrite)
- fprintf_filtered (file, _("on: Logging overwrites the log file.\n"));
+ gdb_printf (file, _("on: Logging overwrites the log file.\n"));
else
- fprintf_filtered (file, _("off: Logging appends to the log file.\n"));
+ gdb_printf (file, _("off: Logging appends to the log file.\n"));
}
/* Value as configured by the user. */
struct cmd_list_element *c, const char *value)
{
if (logging_redirect)
- fprintf_filtered(file, _("on: Output will go only to the log file.\n"));
+ gdb_printf (file, _("on: Output will go only to the log file.\n"));
else
- fprintf_filtered
+ gdb_printf
(file,
_("off: Output will go to both the screen and the log file.\n"));
}
struct cmd_list_element *c, const char *value)
{
if (debug_redirect)
- fprintf_filtered(file,
- _("on: Debug output will go only to the log file.\n"));
+ gdb_printf (file, _("on: Debug output will go only to the log file.\n"));
else
- fprintf_filtered
+ gdb_printf
(file,
_("off: Debug output will go to both the screen and the log file.\n"));
}
{
if (!saved_filename.empty ())
{
- printf_filtered ("Already logging to %s.\n",
- saved_filename.c_str ());
+ gdb_printf ("Already logging to %s.\n",
+ saved_filename.c_str ());
return;
}
if (from_tty)
{
if (!logging_redirect)
- printf_filtered ("Copying output to %s.\n",
- logging_filename.c_str ());
+ gdb_printf ("Copying output to %s.\n",
+ logging_filename.c_str ());
else
- printf_filtered ("Redirecting output to %s.\n",
- logging_filename.c_str ());
+ gdb_printf ("Redirecting output to %s.\n",
+ logging_filename.c_str ());
if (!debug_redirect)
- printf_filtered ("Copying debug output to %s.\n",
- logging_filename.c_str ());
+ gdb_printf ("Copying debug output to %s.\n",
+ logging_filename.c_str ());
else
- printf_filtered ("Redirecting debug output to %s.\n",
- logging_filename.c_str ());
+ gdb_printf ("Redirecting debug output to %s.\n",
+ logging_filename.c_str ());
}
saved_filename = logging_filename;
pop_output_files ();
if (from_tty)
- printf_filtered ("Done logging to %s.\n",
- saved_filename.c_str ());
+ gdb_printf ("Done logging to %s.\n",
+ saved_filename.c_str ());
saved_filename.clear ();
}
struct cmd_list_element *c, const char *value)
{
if (logging_enabled)
- fprintf_unfiltered (file, _("on: Logging is enabled.\n"));
+ gdb_printf (file, _("on: Logging is enabled.\n"));
else
- fprintf_unfiltered (file, _("off: Logging is disabled.\n"));
+ gdb_printf (file, _("off: Logging is disabled.\n"));
}
void _initialize_cli_logging ();