{
int errno_val = errno;
perror ("ERROR in sock_test_buf_alloc()");
- fprintf (stderr, "ERROR: Buffer allocation failed (errno = %d)!\n"
+ fprintf (stderr, "SOCK_TEST: ERROR: Buffer allocation "
+ "failed (errno = %d)!\n"
" Using buffer size %d instead of desired"
" size (%d)\n", errno_val, *bufsize, alloc_size);
}
{
errno_val = errno;
perror ("ERROR in sock_test_read()");
- fprintf (stderr, "ERROR: socket read failed (errno = %d)!\n",
- errno_val);
+ fprintf (stderr, "SOCK_TEST: ERROR: socket read "
+ "failed (errno = %d)!\n", errno_val);
errno = errno_val;
}
else if (stats)
stats->tx_incomp++;
if (verbose)
{
- printf ("WARNING: bytes written (%d) != bytes to write (%d)!\n",
- tx_bytes, nbytes);
+ printf ("SOCK_TEST: WARNING: bytes written (%d) "
+ "!= bytes to write (%d)!\n", tx_bytes, nbytes);
}
}
{
errno_val = errno;
perror ("ERROR in sock_test_write()");
- fprintf (stderr, "ERROR: socket write failed (errno = %d)!\n",
- errno_val);
+ fprintf (stderr, "SOCK_TEST: ERROR: socket write failed "
+ "(errno = %d)!\n", errno_val);
}
else if (stats)
stats->tx_bytes += tx_bytes;