DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix printf format specifiers
@ 2018-09-24 15:49 Herakliusz Lipiec
  2018-09-25 11:23 ` [dpdk-dev] [PATCH v2] " Herakliusz Lipiec
  0 siblings, 1 reply; 4+ messages in thread
From: Herakliusz Lipiec @ 2018-09-24 15:49 UTC (permalink / raw)
  To: wenzhuo.lu, jingjing.wu, bernard.iremonger; +Cc: dev, herakliusz.lipiec, stable

 change PRIu8 -> PRIu16 for port_id (portid_t is uint16_t) in eth_event_callback

Fixes: 76ad4a2d82d4 ("app/testpmd: add generic event handler")
Cc: stable@dpdk.org

Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
---
 app/test-pmd/testpmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 001f0e5..dacc60a 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2215,11 +2215,11 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,
 	RTE_SET_USED(ret_param);
 
 	if (type >= RTE_ETH_EVENT_MAX) {
-		fprintf(stderr, "\nPort %" PRIu8 ": %s called upon invalid event %d\n",
+		fprintf(stderr, "\nPort %" PRIu16 ": %s called upon invalid event %d\n",
 			port_id, __func__, type);
 		fflush(stderr);
 	} else if (event_print_mask & (UINT32_C(1) << type)) {
-		printf("\nPort %" PRIu8 ": %s event\n", port_id,
+		printf("\nPort %" PRIu16 ": %s event\n", port_id,
 			event_desc[type]);
 		fflush(stdout);
 	}
-- 
2.9.5

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v2] app/testpmd: fix printf format specifiers
  2018-09-24 15:49 [dpdk-dev] [PATCH] app/testpmd: fix printf format specifiers Herakliusz Lipiec
@ 2018-09-25 11:23 ` Herakliusz Lipiec
  2018-09-25 16:00   ` Iremonger, Bernard
  0 siblings, 1 reply; 4+ messages in thread
From: Herakliusz Lipiec @ 2018-09-25 11:23 UTC (permalink / raw)
  To: wenzhuo.lu, jingjing.wu, bernard.iremonger; +Cc: dev, herakliusz.lipiec, stable

change PRIu8 -> PRIu16 for port_id in eth_event_callback
(portid_t is uint16_t)

Fixes: 76ad4a2d82d4 ("app/testpmd: add generic event handler")
Cc: stable@dpdk.org

Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
---
 app/test-pmd/testpmd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 001f0e5..dacc60a 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -2215,11 +2215,11 @@ eth_event_callback(portid_t port_id, enum rte_eth_event_type type, void *param,
 	RTE_SET_USED(ret_param);
 
 	if (type >= RTE_ETH_EVENT_MAX) {
-		fprintf(stderr, "\nPort %" PRIu8 ": %s called upon invalid event %d\n",
+		fprintf(stderr, "\nPort %" PRIu16 ": %s called upon invalid event %d\n",
 			port_id, __func__, type);
 		fflush(stderr);
 	} else if (event_print_mask & (UINT32_C(1) << type)) {
-		printf("\nPort %" PRIu8 ": %s event\n", port_id,
+		printf("\nPort %" PRIu16 ": %s event\n", port_id,
 			event_desc[type]);
 		fflush(stdout);
 	}
-- 
2.9.5

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/testpmd: fix printf format specifiers
  2018-09-25 11:23 ` [dpdk-dev] [PATCH v2] " Herakliusz Lipiec
@ 2018-09-25 16:00   ` Iremonger, Bernard
  2018-10-11 11:20     ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit
  0 siblings, 1 reply; 4+ messages in thread
From: Iremonger, Bernard @ 2018-09-25 16:00 UTC (permalink / raw)
  To: Lipiec, Herakliusz, Lu, Wenzhuo, Wu, Jingjing; +Cc: dev, stable

> -----Original Message-----
> From: Lipiec, Herakliusz
> Sent: Tuesday, September 25, 2018 12:23 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>; Iremonger, Bernard
> <bernard.iremonger@intel.com>
> Cc: dev@dpdk.org; Lipiec, Herakliusz <herakliusz.lipiec@intel.com>;
> stable@dpdk.org
> Subject: [PATCH v2] app/testpmd: fix printf format specifiers
> 
> change PRIu8 -> PRIu16 for port_id in eth_event_callback (portid_t is
> uint16_t)
> 
> Fixes: 76ad4a2d82d4 ("app/testpmd: add generic event handler")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [dpdk-stable] [PATCH v2] app/testpmd: fix printf format specifiers
  2018-09-25 16:00   ` Iremonger, Bernard
@ 2018-10-11 11:20     ` Ferruh Yigit
  0 siblings, 0 replies; 4+ messages in thread
From: Ferruh Yigit @ 2018-10-11 11:20 UTC (permalink / raw)
  To: Iremonger, Bernard, Lipiec, Herakliusz, Lu, Wenzhuo, Wu, Jingjing
  Cc: dev, stable

On 9/25/2018 5:00 PM, Iremonger, Bernard wrote:
>> -----Original Message-----
>> From: Lipiec, Herakliusz
>> Sent: Tuesday, September 25, 2018 12:23 PM
>> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
>> <jingjing.wu@intel.com>; Iremonger, Bernard
>> <bernard.iremonger@intel.com>
>> Cc: dev@dpdk.org; Lipiec, Herakliusz <herakliusz.lipiec@intel.com>;
>> stable@dpdk.org
>> Subject: [PATCH v2] app/testpmd: fix printf format specifiers
>>
>> change PRIu8 -> PRIu16 for port_id in eth_event_callback (portid_t is
>> uint16_t)
>>
>> Fixes: 76ad4a2d82d4 ("app/testpmd: add generic event handler")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
> 
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-11 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 15:49 [dpdk-dev] [PATCH] app/testpmd: fix printf format specifiers Herakliusz Lipiec
2018-09-25 11:23 ` [dpdk-dev] [PATCH v2] " Herakliusz Lipiec
2018-09-25 16:00   ` Iremonger, Bernard
2018-10-11 11:20     ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).