forked from external/yambar
log: LOG_ERRNO: include numeric value of errno
This commit is contained in:
parent
25c20e5534
commit
5af070ee1d
1 changed files with 1 additions and 1 deletions
2
log.c
2
log.c
|
@ -84,7 +84,7 @@ _log(enum log_class log_class, const char *module, const char *file, int lineno,
|
|||
vfprintf(stderr, fmt, va);
|
||||
|
||||
if (sys_errno != 0)
|
||||
fprintf(stderr, ": %s", strerror(sys_errno));
|
||||
fprintf(stderr, ": %s (%d)", strerror(sys_errno), sys_errno);
|
||||
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue