Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
LD_PRELOAD: stateless LDP
[vpp.git]
/
src
/
vcl
/
sock_test.h
diff --git
a/src/vcl/sock_test.h
b/src/vcl/sock_test.h
index
281ba6f
..
b4a22ad
100644
(file)
--- a/
src/vcl/sock_test.h
+++ b/
src/vcl/sock_test.h
@@
-157,7
+157,8
@@
sock_test_buf_alloc (sock_test_cfg_t *cfg, uint8_t is_rxbuf, uint8_t **buf,
{
int errno_val = errno;
perror ("ERROR in sock_test_buf_alloc()");
{
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);
}
" Using buffer size %d instead of desired"
" size (%d)\n", errno_val, *bufsize, alloc_size);
}
@@
-340,8
+341,8
@@
sock_test_read (int fd, uint8_t *buf, uint32_t nbytes,
{
errno_val = errno;
perror ("ERROR in sock_test_read()");
{
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)
errno = errno_val;
}
else if (stats)
@@
-392,8
+393,8
@@
sock_test_write (int fd, uint8_t *buf, uint32_t nbytes,
stats->tx_incomp++;
if (verbose)
{
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);
}
}
}
}
@@
-403,8
+404,8
@@
sock_test_write (int fd, uint8_t *buf, uint32_t nbytes,
{
errno_val = errno;
perror ("ERROR in sock_test_write()");
{
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;
}
else if (stats)
stats->tx_bytes += tx_bytes;