git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/octeontx2: support flow action port ID
[dpdk.git]
/
app
/
test
/
test_errno.c
diff --git
a/app/test/test_errno.c
b/app/test/test_errno.c
index
920a2cf
..
3ff0456
100644
(file)
--- a/
app/test/test_errno.c
+++ b/
app/test/test_errno.c
@@
-18,7
+18,7
@@
test_errno(void)
{
const char *rte_retval;
const char *libc_retval;
{
const char *rte_retval;
const char *libc_retval;
-#ifdef RTE_EXEC_ENV_
BSDAPP
+#ifdef RTE_EXEC_ENV_
FREEBSD
/* BSD has a colon in the string, unlike linux */
const char unknown_code_result[] = "Unknown error: %d";
#else
/* BSD has a colon in the string, unlike linux */
const char unknown_code_result[] = "Unknown error: %d";
#else
@@
-36,7
+36,7
@@
test_errno(void)
if (rte_errno != 0)
return -1;
/* check for standard errors we return the same as libc */
if (rte_errno != 0)
return -1;
/* check for standard errors we return the same as libc */
- for (i = 0; i <
sizeof(std_errs)/sizeof(std_errs[0]); i++)
{
+ for (i = 0; i <
RTE_DIM(std_errs); i++)
{
rte_retval = rte_strerror(std_errs[i]);
libc_retval = strerror(std_errs[i]);
printf("rte_strerror: '%s', strerror: '%s'\n",
rte_retval = rte_strerror(std_errs[i]);
libc_retval = strerror(std_errs[i]);
printf("rte_strerror: '%s', strerror: '%s'\n",
@@
-47,7
+47,7
@@
test_errno(void)
/* for rte-specific errors ensure we return a different string
* and that the string for libc is for an unknown error
*/
/* for rte-specific errors ensure we return a different string
* and that the string for libc is for an unknown error
*/
- for (i = 0; i <
sizeof(rte_errs)/sizeof(rte_errs[0]); i++)
{
+ for (i = 0; i <
RTE_DIM(rte_errs); i++)
{
rte_retval = rte_strerror(rte_errs[i]);
libc_retval = strerror(rte_errs[i]);
printf("rte_strerror: '%s', strerror: '%s'\n",
rte_retval = rte_strerror(rte_errs[i]);
libc_retval = strerror(rte_errs[i]);
printf("rte_strerror: '%s', strerror: '%s'\n",