Skip to content

Commit

Permalink
virtio_net: tidy a couple debug statements
Browse files Browse the repository at this point in the history
We are printing a decimal value for truesize so we shouldn't use an "0x"
prefix.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Dan Carpenter authored and Michael S. Tsirkin committed May 9, 2017
1 parent 3008a20 commit 56da5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
rcu_read_unlock();

if (unlikely(len > (unsigned long)ctx)) {
pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n",
pr_debug("%s: rx error: len %u exceeds truesize %lu\n",
dev->name, len, (unsigned long)ctx);
dev->stats.rx_length_errors++;
goto err_skb;
Expand All @@ -639,7 +639,7 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,

page = virt_to_head_page(buf);
if (unlikely(len > (unsigned long)ctx)) {
pr_debug("%s: rx error: len %u exceeds truesize 0x%lu\n",
pr_debug("%s: rx error: len %u exceeds truesize %lu\n",
dev->name, len, (unsigned long)ctx);
dev->stats.rx_length_errors++;
goto err_skb;
Expand Down

0 comments on commit 56da5fd

Please sign in to comment.