X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_cmdline_etheraddr.c;h=45c61ff680b611e459a629e178e96e15de0a32cf;hb=9aaccf1abdb2894ec23870e1d2199a657f85850e;hp=c67a0a51fca5b13ea699a9c3f8e94808536da161;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/app/test/test_cmdline_etheraddr.c b/app/test/test_cmdline_etheraddr.c index c67a0a51fc..45c61ff680 100644 --- a/app/test/test_cmdline_etheraddr.c +++ b/app/test/test_cmdline_etheraddr.c @@ -146,8 +146,8 @@ test_parse_etheraddr_invalid_param(void) /* try null result */ /* copy string to buffer */ - rte_snprintf(buf, sizeof(buf), "%s", - ether_addr_valid_strs[0]); + snprintf(buf, sizeof(buf), "%s", + ether_addr_valid_strs[0].str); ret = cmdline_parse_etheraddr(NULL, buf, NULL); if (ret == -1) { @@ -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) {