Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
650b04f8cc66d4153fa7e47505dae6d8f0a24704
/
.
/
src
/
signal
/
psiginfo.c
blob: 57be34cd017ca4041f7cb2029e825ad45e796cd7 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<string.h>
#include
<signal.h>
void
psiginfo
(
const
siginfo_t
*
si
,
const
char
*
msg
)
{
char
*
s
=
strsignal
(
si
->
si_signo
);
if
(
msg
)
fprintf
(
stderr
,
"%s: %s\n"
,
msg
,
s
);
else
fprintf
(
stderr
,
"%s\n"
,
s
);
}