mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ceph: Fix the wrong format specifier
@ 2025-09-19  3:27 liujing
  2025-09-19 18:38 ` Viacheslav Dubeyko
  0 siblings, 1 reply; 2+ messages in thread
From: liujing @ 2025-09-19  3:27 UTC (permalink / raw)
  To: idryomov; +Cc: xiubli, ceph-devel, linux-kernel, liujing

in the ceph_common.c file, to strictly comply with the requirements
of the %x format specifier and avoid type mismatch and overflow
issues, d should be defined as an unsigned int type.

Signed-off-by: liujing <liujing@cmss.chinamobile.com>
---
 net/ceph/ceph_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ceph/ceph_common.c b/net/ceph/ceph_common.c
index 4c6441536d55..d3c19a63cadd 100644
--- a/net/ceph/ceph_common.c
+++ b/net/ceph/ceph_common.c
@@ -195,7 +195,7 @@ int ceph_parse_fsid(const char *str, struct ceph_fsid *fsid)
 	int i = 0;
 	char tmp[3];
 	int err = -EINVAL;
-	int d;
+	unsigned int d;
 
 	dout("%s '%s'\n", __func__, str);
 	tmp[2] = 0;
-- 
2.27.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-19 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-19  3:27 [PATCH] ceph: Fix the wrong format specifier liujing
2025-09-19 18:38 ` Viacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®