Skip to contentSkip to conversation

rtc: Fix printf format warning in m41t60.c

PATCH New Stefan Roese 2 participants 2 messages Jul 10, 2008 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: Fix printf format warning in m41t60.c

---
 drivers/rtc/m41t60.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/rtc/m41t60.c +1 -1
index 8a32ea0..ef135ca 100644
@@ -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;
Signature · 1 line
1.5.6.2
#1 lore raw

PATCH 1/1 rtc: Fix printf format warning in m41t60.c

Quoted 4 lines · In message <[email protected]> you wrote:
---
 drivers/rtc/m41t60.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks!

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I didn't know it was impossible when I did it."