[U-Boot-Users] [PATCH] rtc: Fix printf format warning in m41t60.c
Stefan Roese
sr at denx.de
Thu Jul 10 10:00:45 CEST 2008
Signed-off-by: Stefan Roese <sr at denx.de>
---
drivers/rtc/m41t60.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/rtc/m41t60.c b/drivers/rtc/m41t60.c
index 8a32ea0..ef135ca 100644
--- a/drivers/rtc/m41t60.c
+++ b/drivers/rtc/m41t60.c
@@ -241,7 +241,7 @@ void rtc_reset(void)
if (l <= 0x3F) {
if ((data[RTC_CTRL] & 0x3F) != l) {
- printf("Setting RTC calibration to 0x%02X\n",
+ printf("Setting RTC calibration to 0x%02lX\n",
l);
data[RTC_CTRL] &= 0xC0;
data[RTC_CTRL] |= (uchar) l;
--
1.5.6.2
More information about the U-Boot
mailing list