mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Use uintptr_t for chipaddr instead of unsigned long
Corresponding to flashrom svn r1698. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
5
jedec.c
5
jedec.c
@ -376,7 +376,7 @@ int write_jedec_1(struct flashctx *flash, uint8_t *src, unsigned int start,
|
||||
dst++, src++;
|
||||
}
|
||||
if (failed)
|
||||
msg_cerr(" writing sector at 0x%lx failed!\n", olddst);
|
||||
msg_cerr(" writing sector at 0x%" PRIxPTR " failed!\n", olddst);
|
||||
|
||||
return failed;
|
||||
}
|
||||
@ -417,8 +417,7 @@ retry:
|
||||
goto retry;
|
||||
}
|
||||
if (failed) {
|
||||
msg_cerr(" page 0x%lx failed!\n",
|
||||
(d - bios) / page_size);
|
||||
msg_cerr(" page 0x%" PRIxPTR " failed!\n", (d - bios) / page_size);
|
||||
}
|
||||
return failed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user