Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Hurley and committed by
Greg Kroah-Hartman
d13b0b6d 1aedfa8f

+1 -1
+1 -1
drivers/staging/fwserial/fwserial.c
··· 578 578 size_t size = (n + sizeof(struct buffered_rx) + 0xFF) & ~0xFF; 579 579 580 580 if (port->buffered + n > HIGH_WATERMARK) { 581 - fwtty_err_ratelimited(port, "overflowed rx buffer: buffered: %d new: %ld wtrmk: %d", 581 + fwtty_err_ratelimited(port, "overflowed rx buffer: buffered: %d new: %zu wtrmk: %d", 582 582 port->buffered, n, HIGH_WATERMARK); 583 583 return 0; 584 584 }