]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_common_errno.c
add FreeBSD support
[dpdk.git] / lib / librte_eal / common / eal_common_errno.c
index b2389187b660d3122c620794bdca996f2a776fc5..0243816faeb789be6583c696f93d23a5b6516e11 100644 (file)
@@ -53,7 +53,11 @@ rte_strerror(int errnum)
         * themselves if errnum is too big, we handle that case here */
        if (errnum > RTE_MAX_ERRNO)
                rte_snprintf(RTE_PER_LCORE(retval), RETVAL_SZ,
+#ifdef RTE_EXEC_ENV_BSDAPP
+                               "Unknown error: %d", errnum);
+#else
                                "Unknown error %d", errnum);
+#endif
        else
                switch (errnum){
                case E_RTE_SECONDARY: