* [Qemu-devel] [PATCH] net/vmxnet3: Fix incorrect debug message
@ 2015-07-28 18:44 Shmulik Ladkani
2015-07-29 9:29 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Shmulik Ladkani @ 2015-07-28 18:44 UTC (permalink / raw)
To: qemu-devel, Dmitry Fleytman, Stefan Hajnoczi; +Cc: Dana Rubin, Shmulik Ladkani
From: Dana Rubin <dana.rubin@ravellosystems.com>
From: Dana Rubin <dana.rubin@ravellosystems.com>
In commit 80da311d81,
"net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets"
a debug message was introduced in vmxnet3_rx_need_csum_calculate() for
an unlikely input condition.
The message accidentally printed 'len' variable instead of 'pkt_len'.
Fix, providing the correct argument.
Signed-off-by: Dana Rubin <dana.rubin@ravellosystems.com>
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
---
hw/net/vmxnet3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index 59b06b8..071feeb 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -927,9 +927,9 @@ static void vmxnet3_rx_need_csum_calculate(struct VmxnetRxPkt *pkt,
/* Validate packet len: csum_start + scum_offset + length of csum field */
if (pkt_len < (vhdr->csum_start + vhdr->csum_offset + 2)) {
- VMW_PKPRN("packet len:%d < csum_start(%d) + csum_offset(%d) + 2, "
+ VMW_PKPRN("packet len:%lu < csum_start(%d) + csum_offset(%d) + 2, "
"cannot calculate checksum",
- len, vhdr->csum_start, vhdr->csum_offset);
+ pkt_len, vhdr->csum_start, vhdr->csum_offset);
return;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] net/vmxnet3: Fix incorrect debug message
2015-07-28 18:44 [Qemu-devel] [PATCH] net/vmxnet3: Fix incorrect debug message Shmulik Ladkani
@ 2015-07-29 9:29 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2015-07-29 9:29 UTC (permalink / raw)
To: Shmulik Ladkani; +Cc: Dmitry Fleytman, qemu-devel, Dana Rubin
[-- Attachment #1: Type: text/plain, Size: 868 bytes --]
On Tue, Jul 28, 2015 at 09:44:50PM +0300, Shmulik Ladkani wrote:
> From: Dana Rubin <dana.rubin@ravellosystems.com>
>
> From: Dana Rubin <dana.rubin@ravellosystems.com>
>
> In commit 80da311d81,
> "net/vmxnet3: Fix RX TCP/UDP checksum on partially summed packets"
> a debug message was introduced in vmxnet3_rx_need_csum_calculate() for
> an unlikely input condition.
>
> The message accidentally printed 'len' variable instead of 'pkt_len'.
> Fix, providing the correct argument.
>
> Signed-off-by: Dana Rubin <dana.rubin@ravellosystems.com>
> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@ravellosystems.com>
> ---
> hw/net/vmxnet3.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Not critical, so applying for QEMU 2.5.
Thanks, applied to my net-next tree:
https://github.com/stefanha/qemu/commits/net-next
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-29 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28 18:44 [Qemu-devel] [PATCH] net/vmxnet3: Fix incorrect debug message Shmulik Ladkani
2015-07-29 9:29 ` Stefan Hajnoczi
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).