From: Yang Tse Date: Tue, 9 Oct 2007 23:24:28 +0000 (+0000) Subject: also log error message string X-Git-Tag: upstream/7.37.1~8571 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54bcde0a149f189a8a140e63a8e27568dfa3ee61;p=platform%2Fupstream%2Fcurl.git also log error message string --- diff --git a/tests/server/sws.c b/tests/server/sws.c index 2f429ed..e9f5f93 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); }