chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] support log-priority levels in udev.conf
[elogind.git]
/
klibc
/
klibc
/
perror.c
diff --git
a/klibc/klibc/perror.c
b/klibc/klibc/perror.c
index 45585cd57739eed2f97cc8796526429d24ee18ef..26f8ce8f6d963be5f6740bb6e775d3be87ad9b29 100644
(file)
--- a/
klibc/klibc/perror.c
+++ b/
klibc/klibc/perror.c
@@
-8,5
+8,6
@@
void perror(const char *s)
{
void perror(const char *s)
{
- fprintf(stderr, "%s: error %d\n", s, errno);
+ int e = errno;
+ fprintf(stderr, "%s: %s\n", s, strerror(e));
}
}