fm10k: fix build with debug enabled
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 3 Mar 2015 10:45:02 +0000 (11:45 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Mar 2015 10:18:36 +0000 (11:18 +0100)
error: implicit declaration of function ‘RTE_LOG’

Fixes: a6061d9e7075 ("fm10k: register PF driver")

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_fm10k/fm10k_logs.h

index febd796..41a45ce 100644 (file)
@@ -34,6 +34,8 @@
 #ifndef _FM10K_LOGS_H_
 #define _FM10K_LOGS_H_
 
+#include <rte_log.h>
+
 #define PMD_INIT_LOG(level, fmt, args...) \
        rte_log(RTE_LOG_ ## level, RTE_LOGTYPE_PMD, \
                "PMD: %s(): " fmt "\n", __func__, ##args)