eal: move CPU flag functions out of headers
[dpdk.git] / lib / librte_eal / common / eal_common_cpuflags.c
index 8ba7b30..a4c5a29 100644 (file)
@@ -30,6 +30,9 @@
  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+
+#include <stdio.h>
+
 #include <rte_common.h>
 #include <rte_cpuflags.h>
 
@@ -79,7 +82,7 @@ rte_cpu_check_supported(void)
                        fprintf(stderr,
                                "ERROR: This system does not support \"%s\".\n"
                                "Please check that RTE_MACHINE is set correctly.\n",
-                               cpu_feature_table[compile_time_flags[i]].name);
+                               rte_cpu_get_flag_name(compile_time_flags[i]));
                        exit(1);
                }
        }