diff --git a/nsprpub/pr/tests/sockping.c b/nsprpub/pr/tests/sockping.c index fb377903e4cf..477851c221d1 100644 --- a/nsprpub/pr/tests/sockping.c +++ b/nsprpub/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);