[dpdk-dev,v1,net/pcap] fix the NUMA id display in logs.
Checks
Commit Message
On single NUMA device the log information shows as boundary value
instead of -1. The change brings in unsinged to signed.
Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
---
drivers/net/pcap/rte_eth_pcap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 12/22/2017 4:38 AM, Vipin Varghese wrote:
> On single NUMA device the log information shows as boundary value
> instead of -1. The change brings in unsinged to signed.
>
> Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
On 1/11/2018 6:06 PM, Ferruh Yigit wrote:
> On 12/22/2017 4:38 AM, Vipin Varghese wrote:
>> On single NUMA device the log information shows as boundary value
>> instead of -1. The change brings in unsinged to signed.
>>
>> Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
>
> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
@@ -806,7 +806,7 @@ struct pmd_devargs {
const char *name;
name = rte_vdev_device_name(vdev);
- RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %u\n",
+ RTE_LOG(INFO, PMD, "Creating pcap-backed ethdev on numa socket %d\n",
numa_node);
/* now do all data allocation - for eth_dev structure
@@ -1036,7 +1036,7 @@ struct pmd_devargs {
{
struct rte_eth_dev *eth_dev = NULL;
- RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %u\n",
+ RTE_LOG(INFO, PMD, "Closing pcap ethdev on numa socket %d\n",
rte_socket_id());
if (!dev)