diff options
author | Adam Jackson <ajax@redhat.com> | 2008-02-01 15:36:11 +1100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-02-14 07:52:02 +1100 |
commit | f3b3b37ec6197f8884417fbc26630d3a28f2e319 (patch) | |
tree | 345a9462eea606d927f3007992c6830b0000e4bb /os | |
parent | b740b865e4c156a40adc6b63fcf215156fc9151a (diff) |
Use strerror instead of errno values in user strings.
Diffstat (limited to 'os')
-rw-r--r-- | os/WaitFor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/WaitFor.c b/os/WaitFor.c index c58f24888..36e01ca38 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -254,13 +254,13 @@ WaitForSomething(int *pClientsReady) } else if (selecterr == EINVAL) { - FatalError("WaitForSomething(): select: errno=%d\n", - selecterr); + FatalError("WaitForSomething(): select: %s\n", + strerror(selecterr)); } else if (selecterr != EINTR && selecterr != EAGAIN) { - ErrorF("WaitForSomething(): select: errno=%d\n", - selecterr); + ErrorF("WaitForSomething(): select: %s\n", + strerror(selecterr)); } } #ifdef SMART_SCHEDULE |