Commit 1b30499a authored by Daniels Umanovskis's avatar Daniels Umanovskis Committed by Johan Hovold
Browse files

USB: serial: ftdi_sio: clean up printk format specifier



The latency is an unsigned int and should be printed as such (even if it
only holds values in the range 0..255).

Signed-off-by: default avatarDaniels Umanovskis <du@axentia.se>
Link: https://lore.kernel.org/r/20220426123714.2000-1-du@axentia.se


[ johan: amend commit message ]
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 672c0c51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1671,7 +1671,7 @@ static ssize_t latency_timer_show(struct device *dev,
	if (priv->flags & ASYNC_LOW_LATENCY)
		return sprintf(buf, "1\n");
	else
		return sprintf(buf, "%i\n", priv->latency);
		return sprintf(buf, "%u\n", priv->latency);
}

/* Write a new value of the latency timer, in units of milliseconds. */