Merge branch 'ericonr/procps-error'

References:
 procps-ng/procps!137
This commit is contained in:
Craig Small 2021-06-16 20:02:18 +10:00
commit 64578746f6

View File

@ -118,7 +118,7 @@ static void error(int status, int errnum, const char *format, ...)
vfprintf(stderr, format, argp);
va_end(argp);
if (errnum != 0)
fprintf(stderr, ": error code %d", errnum);
fprintf(stderr, ": %s", strerror(errnum));
fprintf(stderr, "\n");
if (status != 0)
exit(status);