]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Ensure debug output ends in newline
authorPaul Smith <psmith@gnu.org>
Thu, 8 Sep 2022 04:30:06 +0000 (00:30 -0400)
committerPaul Smith <psmith@gnu.org>
Thu, 8 Sep 2022 07:04:15 +0000 (03:04 -0400)
* src/load.c (load_object): Debug output strings must include \n.
* src/variable.c (target_environment): Ditto.
* src/posixos.c: Remove extra newlines.

src/load.c
src/posixos.c
src/variable.c

index f86027d3e26f2b2e9cb1cda1e57231d296251a9d..263eb35790601334264e8f1ba52b8efb29e6189f 100644 (file)
@@ -84,7 +84,7 @@ load_object (const floc *flocp, int noerror, const char *ldname,
         {
           const char *err = dlerror ();
           if (noerror)
-            DB (DB_BASIC, ("%s", err));
+            DB (DB_BASIC, ("%s\n", err));
           else
             OS (error, flocp, "%s", err);
           return NULL;
index 3538a6b88b538f0831fdc93e9d78b90dc4c9dec6..8693b74e7dabe8c2bae4754e37afdfccc1d48df9 100644 (file)
@@ -163,8 +163,7 @@ jobserver_setup (int slots, const char *style)
             OSS (fatal, NILF, _("Cannot open jobserver %s: %s"),
                  fifo_name, strerror (errno));
 
-          DB (DB_JOBS,
-              (_("Jobserver setup (fifo %s)\n"), fifo_name));
+          DB (DB_JOBS, (_("Jobserver setup (fifo %s)\n"), fifo_name));
 
           js_type = js_fifo;
         }
@@ -180,8 +179,8 @@ jobserver_setup (int slots, const char *style)
       if (r < 0)
         pfatal_with_name (_("creating jobs pipe"));
 
-      DB (DB_JOBS,
-          (_("Jobserver setup (fds %d,%d)\n"), job_fds[0], job_fds[1]));
+      DB (DB_JOBS, (_("Jobserver setup (fds %d,%d)\n"),
+                    job_fds[0], job_fds[1]));
 
       js_type = js_pipe;
     }
@@ -234,8 +233,7 @@ jobserver_parse_auth (const char *auth)
   /* If not, it must be a simple pipe.  */
   else if (sscanf (auth, "%d,%d", &rfd, &wfd) == 2)
     {
-      DB (DB_JOBS,
-          (_("Jobserver client (fds %d,%d)\n"), rfd, wfd));
+      DB (DB_JOBS, (_("Jobserver client (fds %d,%d)\n"), rfd, wfd));
 
       /* The parent overrode our FDs because we aren't a recursive make.  */
       if (rfd == -2 || wfd == -2)
index 30f4424af668ce112816e97e739a984c5dff2203..6c3d21250ba9fbfd99e96d00b609d806d730c6ce 100644 (file)
@@ -1106,8 +1106,9 @@ target_environment (struct file *file, int recursive)
                function, just skip it.  */
             if (v->expanding && file == NULL)
               {
-                DB (DB_VERBOSE, (_("%s:%lu: Skipping export of %s to shell function due to recursive expansion"),
-                                 v->fileinfo.filenm, v->fileinfo.lineno, v->name));
+                DB (DB_VERBOSE,
+                    (_("%s:%lu: Skipping export of %s to shell function due to recursive expansion\n"),
+                     v->fileinfo.filenm, v->fileinfo.lineno, v->name));
                 continue;
               }