跑DPDK运行报找不到PCI设备
lspci | grep Eth 网卡设备也存在
其他步骤也没问题
经查找 原因: pci 插在了 cpu1 卡槽上, 但是该CPU对应的内存条未识别,原因:未插紧
解决方法: pci 插在另一个内存条识别的 cpu 卡槽上
3格式化输出
warning: format ‘%u’ expects argument of type ‘unsignedint’, but argument 2 has type ‘__time_t’ [-Wformat=]
gcc test.c -Wformat=0 就没问题了。Wformat这个配置在Centos下默认是关闭的,所以一直没报错,如果编译的时候打开,也会提示一样的错误。