From: Aaron Merey Date: Wed, 9 Feb 2022 01:30:24 +0000 (-0500) Subject: Fix whitespace X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6137e64926a9bc82272c62061eb3d707f578626f;p=thirdparty%2Fbinutils-gdb.git Fix whitespace --- diff --git a/gdb/cli-out.c b/gdb/cli-out.c index 81034d1b011..3523b074e75 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -270,12 +270,12 @@ cli_ui_out::do_redirect (ui_file *outstream) - printed for tty, SHOULD_PRINT == true - next state == PERCENT: - <(XX%) NAME\r> + <(XX%) NAME\r> - next state == SPIN: - <-\|/ NAME\r> + <-\|/ NAME\r> - next state == BAR: - + - printed for tty, SHOULD_PRINT == false: <> - printed for not-a-tty: @@ -292,7 +292,7 @@ cli_ui_out::do_progress_start (const std::string &name, bool should_print) info.name = name; if (!stream->isatty ()) { - fprintf_unfiltered (stream, "%s...\n", info.name.c_str ()); + fprintf_unfiltered (stream, "%s\n", info.name.c_str ()); gdb_flush (stream); info.state = progress_update::WORKING; } diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index 5c94625297a..5a5420c8c03 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -276,7 +276,7 @@ progressfn (debuginfod_client *c, long cur, long total) if (percent >= 0.0 && percent <= 1.0) { - if (!data->progress.has_value () + if (!data->progress.has_value () || data->progress->get_state () != ui_out::progress_update::PERCENT) { @@ -284,7 +284,7 @@ progressfn (debuginfod_client *c, long cur, long total) const char *unit = ""; get_size_and_unit (&size, &unit); - std::string fsize = string_printf ("%.2f", size); + std::string fsize = string_printf ("%.2f", size); std::string message = build_message (fsize, unit, data->desc, data->fname); if (!data->progress.has_value ()) diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 283cd0f8e0e..a7f697b4f28 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -261,10 +261,10 @@ mi_ui_out::main_stream () /* Indicate that a task described by NAME is in progress: - SHOULD_PRINT == true: - + - SHOULD_PRINT == false: - <> + <> */ void