Skip to contentSkip to conversation

Fix compiler warnings after loff_t change

PATCH New Kyungmin Park 2 participants 2 messages Jul 20, 2009 – Jul 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compiler warnings after loff_t change

Now 'env_addr' type is loff_t so use correct field type.

---

common/env_onenand.c +1 -1
index 476fdbc..dcf09de 100644
@@ -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;
 	}
 
#1 lore raw

PATCH 1/1 Fix compiler warnings after loff_t change

Dear Kyungmin Park,

Quoted 9 lines · In message <20090720004747.GA32595@july> you wrote:

Now 'env_addr' type is loff_t so use correct field type.

---

common/env_onenand.c +0 -0
index 476fdbc..dcf09de 100644

common/env_onenand.c int saveenv(void) · line 106

Quoted 7 lines
common/env_onenand.c +1 -1
@@ -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;
 	}

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 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
Perl already has an IDE.  It's called Unix.
                      -- Tom Christiansen in 375bd509 at cs.colorado.edu