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