Commit 37f13434 authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[IRDA]: Fix warnings in sir_dev.c

parent 5b85b180
...@@ -240,7 +240,8 @@ int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count) ...@@ -240,7 +240,8 @@ int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count)
} }
if (!dev->irlap) { if (!dev->irlap) {
WARNING("%s - too early: %p / %d!\n", __FUNCTION__, cp, count); WARNING("%s - too early: %p / %zd!\n",
__FUNCTION__, cp, count);
return -1; return -1;
} }
...@@ -250,7 +251,7 @@ int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count) ...@@ -250,7 +251,7 @@ int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count)
*/ */
irda_device_set_media_busy(dev->netdev, TRUE); irda_device_set_media_busy(dev->netdev, TRUE);
dev->stats.rx_dropped++; dev->stats.rx_dropped++;
IRDA_DEBUG(0, "%s; rx-drop: %d\n", __FUNCTION__, count); IRDA_DEBUG(0, "%s; rx-drop: %zd\n", __FUNCTION__, count);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment