aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/psiginfo.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2010-10-11 09:10:41 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-11 09:10:41 -0400
commitaf3259695d0330dad913eae8f03f23062ea5f0f7 (patch)
tree772ae6d7e279ff7801e92048ffc1ff6c09e1360c /stdio-common/psiginfo.c
parent67a67b950be9741a4cf1ff3e75572204b06bec2e (diff)
downloadglibc-af3259695d0330dad913eae8f03f23062ea5f0f7.zip
glibc-af3259695d0330dad913eae8f03f23062ea5f0f7.tar.gz
glibc-af3259695d0330dad913eae8f03f23062ea5f0f7.tar.bz2
Unify psiginfo output.
Diffstat (limited to 'stdio-common/psiginfo.c')
-rw-r--r--stdio-common/psiginfo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/stdio-common/psiginfo.c b/stdio-common/psiginfo.c
index 90cdf05..49b86ec 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