eal: fix usage of printf-like functions
[dpdk.git] / app / test / test_cmdline_etheraddr.c
index c67a0a5..739f249 100644 (file)
@@ -147,7 +147,7 @@ test_parse_etheraddr_invalid_param(void)
 
        /* copy string to buffer */
        rte_snprintf(buf, sizeof(buf), "%s",
-                       ether_addr_valid_strs[0]);
+                       ether_addr_valid_strs[0].str);
 
        ret = cmdline_parse_etheraddr(NULL, buf, NULL);
        if (ret == -1) {