From af3259695d0330dad913eae8f03f23062ea5f0f7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 11 Oct 2010 09:10:41 -0400 Subject: Unify psiginfo output. --- stdio-common/psiginfo.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'stdio-common/psiginfo.c') 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 -- cgit v1.2.3