a35d80
support: Typo and formatting fixes
a35d80
a35d80
- Add a newline to the end of error messages in transfer().
a35d80
- Fixed the name of support_subprocess_init().
a35d80
a35d80
(cherry picked from commit 95c68080a3ded882789b1629f872c3ad531efda0)
a35d80
a35d80
diff --git a/support/support_capture_subprocess.c b/support/support_capture_subprocess.c
a35d80
index c13b3e59ece0842e..c475e2004da3183e 100644
a35d80
--- a/support/support_capture_subprocess.c
a35d80
+++ b/support/support_capture_subprocess.c
a35d80
@@ -36,7 +36,7 @@ transfer (const char *what, struct pollfd *pfd, struct xmemstream *stream)
a35d80
       if (ret < 0)
a35d80
         {
a35d80
           support_record_failure ();
a35d80
-          printf ("error: reading from subprocess %s: %m", what);
a35d80
+          printf ("error: reading from subprocess %s: %m\n", what);
a35d80
           pfd->events = 0;
a35d80
           pfd->revents = 0;
a35d80
         }
a35d80
diff --git a/support/support_subprocess.c b/support/support_subprocess.c
a35d80
index 4573350d775ac4c8..af01827cac81d80c 100644
a35d80
--- a/support/support_subprocess.c
a35d80
+++ b/support/support_subprocess.c
a35d80
@@ -27,7 +27,7 @@
a35d80
 #include <support/subprocess.h>
a35d80
 
a35d80
 static struct support_subprocess
a35d80
-support_suprocess_init (void)
a35d80
+support_subprocess_init (void)
a35d80
 {
a35d80
   struct support_subprocess result;
a35d80
 
a35d80
@@ -48,7 +48,7 @@ support_suprocess_init (void)
a35d80
 struct support_subprocess
a35d80
 support_subprocess (void (*callback) (void *), void *closure)
a35d80
 {
a35d80
-  struct support_subprocess result = support_suprocess_init ();
a35d80
+  struct support_subprocess result = support_subprocess_init ();
a35d80
 
a35d80
   result.pid = xfork ();
a35d80
   if (result.pid == 0)
a35d80
@@ -71,7 +71,7 @@ support_subprocess (void (*callback) (void *), void *closure)
a35d80
 struct support_subprocess
a35d80
 support_subprogram (const char *file, char *const argv[])
a35d80
 {
a35d80
-  struct support_subprocess result = support_suprocess_init ();
a35d80
+  struct support_subprocess result = support_subprocess_init ();
a35d80
 
a35d80
   posix_spawn_file_actions_t fa;
a35d80
   /* posix_spawn_file_actions_init does not fail.  */