aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-09 23:24:28 +0000
committerYang Tse <yangsita@gmail.com>2007-10-09 23:24:28 +0000
commit54bcde0a149f189a8a140e63a8e27568dfa3ee61 (patch)
tree5bc6f86e718f54737c2ce39b0d1518c793e9d749 /tests/server
parent660c86ce953af9702bdd4b05f93806a3be13547f (diff)
also log error message string
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/sws.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 2f429edeb..e9f5f9384 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -475,7 +475,8 @@ void storerequest(char *reqbuf)
dump = fopen(REQUEST_DUMP, "ab");
} while ((dump == NULL) && ((error = ERRNO) == EINTR));
if (dump == NULL) {
- logmsg("Error opening file %s error: %d", REQUEST_DUMP, error);
+ logmsg("Error opening file %s error: %d %s",
+ REQUEST_DUMP, error, strerror(error));
logmsg("Failed to write request input to " REQUEST_DUMP);
return;
}
@@ -491,7 +492,8 @@ void storerequest(char *reqbuf)
fclose(dump); /* close it ASAP */
if (writeleft > 0) {
- logmsg("Error writing file %s error: %d", REQUEST_DUMP, error);
+ logmsg("Error writing file %s error: %d %s",
+ REQUEST_DUMP, error, strerror(error));
logmsg("Wrote only (%d bytes) of (%d bytes) request input to %s",
totalsize-writeleft, totalsize, REQUEST_DUMP);
}