Unify psiginfo output.
authorUlrich Drepper <drepper@gmail.com>
Mon, 11 Oct 2010 13:10:41 +0000 (09:10 -0400)
committerUlrich Drepper <drepper@gmail.com>
Mon, 11 Oct 2010 13:10:41 +0000 (09:10 -0400)
ChangeLog
NEWS
stdio-common/psiginfo.c

index 55ca6b4..a969d6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-11  Ulrich Drepper  <drepper@gmail.com>
+
+       [BZ #12108]
+       * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
+       newline.
+
 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
 
        * string/bug-strstr1.c: New file.
diff --git a/NEWS b/NEWS
index 0870bdd..5431c2d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2010-10-3
+GNU C Library NEWS -- history of user-visible changes.  2010-10-11
 Copyright (C) 1992-2009, 2010 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -10,7 +10,7 @@ Version 2.13
 * The following bugs are resolved with this release:
 
   7066, 10851, 11611, 11640, 11701, 11840, 11856, 11883, 11903, 11904,
-  11968, 11979, 12005, 12037, 12067, 12077
+  11968, 11979, 12005, 12037, 12067, 12077, 12092, 12108
 
 * New Linux interfaces: prlimit, prlimit64, fanotify_init, fanotify_mark
 
index 90cdf05..49b86ec 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2009, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -165,14 +165,15 @@ Signal generated by the completion of an I/O request");
 
       if (pinfo->si_signo == SIGILL || pinfo->si_signo == SIGFPE
          || pinfo->si_signo == SIGSEGV || pinfo->si_signo == SIGBUS)
-       fprintf (fp, "[%p])", pinfo->si_addr);
+       fprintf (fp, "[%p])\n", pinfo->si_addr);
       else if (pinfo->si_signo == SIGCHLD)
-       fprintf (fp, "%ld %d %ld)", (long int) pinfo->si_pid, pinfo->si_status,
+       fprintf (fp, "%ld %d %ld)\n",
+                (long int) pinfo->si_pid, pinfo->si_status,
                 (long int) pinfo->si_uid);
       else if (pinfo->si_signo == SIGPOLL)
-       fprintf (fp, "%ld)", (long int) pinfo->si_band);
+       fprintf (fp, "%ld)\n", (long int) pinfo->si_band);
       else
-       fprintf (fp, "%ld %ld)",
+       fprintf (fp, "%ld %ld)\n",
                 (long int) pinfo->si_pid, (long int) pinfo->si_uid);
     }
   else