[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240904073550.103618-1-zhangjiao2@cmss.chinamobile.com>
Date: Wed, 4 Sep 2024 15:35:50 +0800
From: zhangjiao2 <zhangjiao2@...s.chinamobile.com>
To: broonie@...nel.org
Cc: linux-spi@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhang jiao <zhangjiao2@...s.chinamobile.com>
Subject: [PATCH] spi: spidev_fdx: Fix the wrong format specifier
From: zhang jiao <zhangjiao2@...s.chinamobile.com>
The unsigned int should use "%u" instead of "%d".
Signed-off-by: zhang jiao <zhangjiao2@...s.chinamobile.com>
---
tools/spi/spidev_fdx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/spi/spidev_fdx.c b/tools/spi/spidev_fdx.c
index 7d2a867cd4ae..bc9c4f6c3ba8 100644
--- a/tools/spi/spidev_fdx.c
+++ b/tools/spi/spidev_fdx.c
@@ -99,7 +99,7 @@ static void dumpstat(const char *name, int fd)
return;
}
- printf("%s: spi mode 0x%x, %d bits %sper word, %d Hz max\n",
+ printf("%s: spi mode 0x%x, %d bits %sper word, %u Hz max\n",
name, mode, bits, lsb ? "(lsb first) " : "", speed);
}
--
2.33.0
Powered by blists - more mailing lists