linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniels Umanovskis <du@axentia.se>
To: johan@kernel.org, linux-usb@vger.kernel.org
Cc: Daniels Umanovskis <du@axentia.se>
Subject: [PATCH] USB: serial: ftdi_sio: fix format specifier
Date: Tue, 26 Apr 2022 12:37:35 +0000 (UTC)	[thread overview]
Message-ID: <20220426123714.2000-1-du@axentia.se> (raw)

The latency is an unsigned int and should be printed as such

Signed-off-by: Daniels Umanovskis <du@axentia.se>
---
 drivers/usb/serial/ftdi_sio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 49c08f07c969..b440d338a895 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -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. */
-- 
2.30.2


             reply	other threads:[~2022-04-26 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26 12:37 Daniels Umanovskis [this message]
2022-05-05 12:17 ` [PATCH] USB: serial: ftdi_sio: fix format specifier Johan Hovold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220426123714.2000-1-du@axentia.se \
    --to=du@axentia.se \
    --cc=johan@kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).