log: LOG_ERRNO: include numeric value of errno

This commit is contained in:
Daniel Eklöf 2021-08-21 11:08:06 +02:00
parent 25c20e5534
commit 5af070ee1d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
log.c
View file

@ -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);
}