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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241028125751.3948-1-liujing@cmss.chinamobile.com>
Date: Mon, 28 Oct 2024 20:57:51 +0800
From: Liu Jing <liujing@...s.chinamobile.com>
To: krzk@...nel.org
Cc: linux-kernel@...r.kernel.org,
	Liu Jing <liujing@...s.chinamobile.com>
Subject: [PATCH] w1: ds2408: Fix the wrong output format

The output format of the retries variable should be %u instead of %d

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

diff --git a/drivers/w1/slaves/w1_ds2408.c b/drivers/w1/slaves/w1_ds2408.c
index 56f822a1dfdb..1efe55e1dd8a 100644
--- a/drivers/w1/slaves/w1_ds2408.c
+++ b/drivers/w1/slaves/w1_ds2408.c
@@ -199,7 +199,7 @@ static ssize_t output_write(struct file *filp, struct kobject *kobj,
 out:
 	mutex_unlock(&sl->master->bus_mutex);
 
-	dev_dbg(&sl->dev, "%s, mutex unlocked retries:%d\n",
+	dev_dbg(&sl->dev, "%s, mutex unlocked retries:%u\n",
 		(bytes_written > 0) ? "succeeded" : "error", retries);
 
 	return bytes_written;
-- 
2.27.0




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ