mbuf: rename RTE_MBUF_SCATTER_GATHER into RTE_MBUF_REFCNT
[dpdk.git] / app / test / test_cmdline_etheraddr.c
index 739f249..45c61ff 100644 (file)
@@ -146,7 +146,7 @@ test_parse_etheraddr_invalid_param(void)
        /* try null result */
 
        /* copy string to buffer */
-       rte_snprintf(buf, sizeof(buf), "%s",
+       snprintf(buf, sizeof(buf), "%s",
                        ether_addr_valid_strs[0].str);
 
        ret = cmdline_parse_etheraddr(NULL, buf, NULL);
@@ -161,13 +161,6 @@ test_parse_etheraddr_invalid_param(void)
        /* test help function */
        memset(&buf, 0, sizeof(buf));
 
-       /* try null buf */
-       ret = cmdline_get_help_etheraddr(NULL, NULL, sizeof(buf));
-       if (ret != -1) {
-               printf("Error: help function accepted null buffer!\n");
-               return -1;
-       }
-
        /* coverage! */
        ret = cmdline_get_help_etheraddr(NULL, buf, sizeof(buf));
        if (ret < 0) {