浏览代码

rtc: Fix printf format warning in m41t60.c

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 17 年之前
父节点
当前提交
10943c9afa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/rtc/m41t60.c

+ 1 - 1
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;