lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241107032936.2702-1-liujing@cmss.chinamobile.com>
Date: Thu,  7 Nov 2024 11:29:36 +0800
From: liujing <liujing@...s.chinamobile.com>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
	linux-serial@...r.kernel.org,
	liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] tty: synclink_gt: Fix incorrect formatted output

In the struct slgt_info structure, the type of info->tbuf_current
is unsigned int, so the output format is %u.

Signed-off-by: liujing <liujing@...s.chinamobile.com>

diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
index bd8d92ee7c53..0c51c6c28080 100644
--- a/drivers/tty/synclink_gt.c
+++ b/drivers/tty/synclink_gt.c
@@ -519,7 +519,7 @@ static void trace_block(struct slgt_info *info, const char *data, int count, con
 static void dump_tbufs(struct slgt_info *info)
 {
 	int i;
-	printk("tbuf_current=%d\n", info->tbuf_current);
+	printk("tbuf_current=%u\n", info->tbuf_current);
 	for (i=0 ; i < info->tbuf_count ; i++) {
 		printk("%d: count=%04X status=%04X\n",
 			i, le16_to_cpu(info->tbufs[i].count), le16_to_cpu(info->tbufs[i].status));
-- 
2.27.0




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ