diff --git a/common/env_onenand.c b/common/env_onenand.c
index 476fdbce2252a6e34e150d4244efbcd049f0de68..dcf09dee1bcf9d3162ef20974677e5ed98a72752 100644
--- a/common/env_onenand.c
+++ b/common/env_onenand.c
@@ -101,7 +101,7 @@ int saveenv(void)
 	instr.addr = env_addr;
 	instr.mtd = mtd;
 	if (mtd->erase(mtd, &instr)) {
-		printf("OneNAND: erase failed at 0x%08lx\n", env_addr);
+		printf("OneNAND: erase failed at 0x%08llx\n", env_addr);
 		return 1;
 	}