浏览代码

nios2/sysid: fix printf warning

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe PLAGNIOL-VILLARD 16 年之前
父节点
当前提交
4cd7e6528f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cpu/nios2/sysid.c

+ 1 - 1
cpu/nios2/sysid.c

@@ -40,7 +40,7 @@ void display_sysid (void)
 	stamp = readl (&sysid->timestamp);
 	stamp = readl (&sysid->timestamp);
 	localtime_r (&stamp, &t);
 	localtime_r (&stamp, &t);
 	asctime_r (&t, asc);
 	asctime_r (&t, asc);
-	printf ("SYSID : %08x, %s", readl (&sysid->id), asc);
+	printf ("SYSID : %08lx, %s", readl (&sysid->id), asc);
 
 
 }
 }