about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-03-15 16:00:06 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-04-14 11:21:14 +0530
commitd79d7e13ba3526d8d9b90821afc36877242a5bd7 (patch)
tree07647bec7a02d9ec211d327938d19f99f33dabd6
parent7e3b1e71abca31ab96e961ddf7c2a43b00138a24 (diff)
downloadglibc-d79d7e13ba3526d8d9b90821afc36877242a5bd7.tar.gz
glibc-d79d7e13ba3526d8d9b90821afc36877242a5bd7.tar.xz
glibc-d79d7e13ba3526d8d9b90821afc36877242a5bd7.zip
support: Typo and formatting fixes
- Add a newline to the end of error messages in transfer().
- Fixed the name of support_subprocess_init().

(cherry picked from commit 95c68080a3ded882789b1629f872c3ad531efda0)
-rw-r--r--support/support_capture_subprocess.c2
-rw-r--r--support/support_subprocess.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/support/support_capture_subprocess.c b/support/support_capture_subprocess.c
index 8a18e586cc..7b3d96c305 100644
--- a/support/support_capture_subprocess.c
+++ b/support/support_capture_subprocess.c
@@ -36,7 +36,7 @@ transfer (const char *what, struct pollfd *pfd, struct xmemstream *stream)
       if (ret < 0)
         {
           support_record_failure ();
-          printf ("error: reading from subprocess %s: %m", what);
+          printf ("error: reading from subprocess %s: %m\n", what);
           pfd->events = 0;
           pfd->revents = 0;
         }
diff --git a/support/support_subprocess.c b/support/support_subprocess.c
index 9e02ed747a..ae03c4b473 100644
--- a/support/support_subprocess.c
+++ b/support/support_subprocess.c
@@ -27,7 +27,7 @@
 #include <support/subprocess.h>
 
 static struct support_subprocess
-support_suprocess_init (void)
+support_subprocess_init (void)
 {
   struct support_subprocess result;
 
@@ -48,7 +48,7 @@ support_suprocess_init (void)
 struct support_subprocess
 support_subprocess (void (*callback) (void *), void *closure)
 {
-  struct support_subprocess result = support_suprocess_init ();
+  struct support_subprocess result = support_subprocess_init ();
 
   result.pid = xfork ();
   if (result.pid == 0)
@@ -71,7 +71,7 @@ support_subprocess (void (*callback) (void *), void *closure)
 struct support_subprocess
 support_subprogram (const char *file, char *const argv[])
 {
-  struct support_subprocess result = support_suprocess_init ();
+  struct support_subprocess result = support_subprocess_init ();
 
   posix_spawn_file_actions_t fa;
   /* posix_spawn_file_actions_init does not fail.  */