mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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>
This commit is contained in:
parent
1aedfa8f25
commit
d13b0b6d51
@ -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;
|
size_t size = (n + sizeof(struct buffered_rx) + 0xFF) & ~0xFF;
|
||||||
|
|
||||||
if (port->buffered + n > HIGH_WATERMARK) {
|
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);
|
port->buffered, n, HIGH_WATERMARK);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user