diff options
author | Ulrich Drepper <drepper@gmail.com> | 2010-10-11 09:10:41 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-10-11 09:10:41 -0400 |
commit | af3259695d0330dad913eae8f03f23062ea5f0f7 (patch) | |
tree | 772ae6d7e279ff7801e92048ffc1ff6c09e1360c | |
parent | 67a67b950be9741a4cf1ff3e75572204b06bec2e (diff) | |
download | glibc-af3259695d0330dad913eae8f03f23062ea5f0f7.tar.gz glibc-af3259695d0330dad913eae8f03f23062ea5f0f7.tar.xz glibc-af3259695d0330dad913eae8f03f23062ea5f0f7.zip |
Unify psiginfo output.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | stdio-common/psiginfo.c | 11 |
3 files changed, 14 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index 55ca6b4db6..a969d6d158 100644 --- 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 0870bddb1d..5431c2d103 100644 --- 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 diff --git a/stdio-common/psiginfo.c b/stdio-common/psiginfo.c index 90cdf05909..49b86ec34a 100644 --- a/stdio-common/psiginfo.c +++ b/stdio-common/psiginfo.c @@ -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 |