diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2013-01-31 01:18:50 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-31 13:30:34 +0400 |
commit | d13b0b6d51e78b0107c76d79cf0ef06d9e07650b (patch) | |
tree | ba9d8b8fa46dae41bc08bd588deafa42f51ca34a /drivers | |
parent | 1aedfa8f25c13a2f5428cb1b0f806e04121cbef5 (diff) | |
download | linux-d13b0b6d51e78b0107c76d79cf0ef06d9e07650b.tar.xz |
staging/fwserial: Fix compiler warning
Fix:
drivers/staging/fwserial/fwserial.c:581:3: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t'
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/fwserial/fwserial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial/fwserial.c index cad9e98e0e6a..8859c75f16fa 100644 --- a/drivers/staging/fwserial/fwserial.c +++ b/drivers/staging/fwserial/fwserial.c @@ -578,7 +578,7 @@ static int fwtty_buffer_rx(struct fwtty_port *port, unsigned char *d, size_t n) size_t size = (n + sizeof(struct buffered_rx) + 0xFF) & ~0xFF; if (port->buffered + n > HIGH_WATERMARK) { - fwtty_err_ratelimited(port, "overflowed rx buffer: buffered: %d new: %ld wtrmk: %d", + fwtty_err_ratelimited(port, "overflowed rx buffer: buffered: %d new: %zu wtrmk: %d", port->buffered, n, HIGH_WATERMARK); return 0; } |