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