diff options
Diffstat (limited to 'pr/tests/sockping.c')
-rw-r--r-- | pr/tests/sockping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pr/tests/sockping.c b/pr/tests/sockping.c index fb377903..477851c2 100644 --- a/pr/tests/sockping.c +++ b/pr/tests/sockping.c @@ -124,7 +124,8 @@ int main() memset(buf, 0, sizeof(buf)); nBytes = PR_Read(sock[0], buf, sizeof(buf)); if (nBytes == -1) { - fprintf(stderr, "PR_Read failed\n"); + fprintf(stderr, "PR_Read failed: (%d, %d)\n", + PR_GetError(), PR_GetOSError()); exit(1); } printf("ping process: received \"%s\"\n", buf); |