Skip to content

Commit

Permalink
[PATCH] skge 64bit portability
Browse files Browse the repository at this point in the history
	ptrdiff_t is %td, not %d
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
  • Loading branch information
Al Viro authored and Jeff Garzik committed May 16, 2005
1 parent 4075400 commit 0b2d7fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@ static int skge_xmit_frame(struct sk_buff *skb, struct net_device *dev)
skge_write8(hw, Q_ADDR(txqaddr[skge->port], Q_CSR), CSR_START);

if (netif_msg_tx_queued(skge))
printk(KERN_DEBUG "%s: tx queued, slot %d, len %d\n",
printk(KERN_DEBUG "%s: tx queued, slot %td, len %d\n",
dev->name, e - ring->start, skb->len);

ring->to_use = e->next;
Expand Down Expand Up @@ -2607,7 +2607,7 @@ static int skge_poll(struct net_device *dev, int *budget)
}

if (netif_msg_rx_status(skge))
printk(KERN_DEBUG PFX "%s: rx slot %d status 0x%x len %d\n",
printk(KERN_DEBUG PFX "%s: rx slot %td status 0x%x len %d\n",
dev->name, e - ring->start, rd->status, len);

skb_put(skb, len);
Expand Down Expand Up @@ -2667,7 +2667,7 @@ static inline void skge_tx_intr(struct net_device *dev)
break;

if (unlikely(netif_msg_tx_done(skge)))
printk(KERN_DEBUG PFX "%s: tx done slot %d status 0x%x\n",
printk(KERN_DEBUG PFX "%s: tx done slot %td status 0x%x\n",
dev->name, e - ring->start, td->status);

skge_tx_free(hw, e);
Expand Down

0 comments on commit 0b2d7fe

Please sign in to comment.