]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix whitespace
authorAaron Merey <amerey@redhat.com>
Wed, 9 Feb 2022 01:30:24 +0000 (20:30 -0500)
committerAaron Merey <amerey@redhat.com>
Wed, 9 Feb 2022 01:30:24 +0000 (20:30 -0500)
gdb/cli-out.c
gdb/debuginfod-support.c
gdb/mi/mi-out.c

index 81034d1b01152505edbed72a267cb63c79d9166e..3523b074e75ae4c22e5b9c92d11b65aa6944e211 100644 (file)
@@ -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:
-         <NAME
-         [#####                      ]\r>
+       <NAME
+       [#####                      ]\r>
    - 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;
     }
index 5c94625297ac224f740f8827fb2f3f5b2cae1fe9..5a5420c8c039b4076c1af1eb09b1dc765bbbc40e 100644 (file)
@@ -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 ())
index 283cd0f8e0e7e0455f977bae3f93d98f2be17271..a7f697b4f2887785778b0e787e54dad53c562ed4 100644 (file)
@@ -261,10 +261,10 @@ mi_ui_out::main_stream ()
 /* Indicate that a task described by NAME is in progress:
 
    - SHOULD_PRINT == true:
-       <NAME
-       >
+     <NAME
+     >
    - SHOULD_PRINT == false:
-       <>
+     <>
 */
 
 void