mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
firmware: fat: fix sector_t passed to 64-bit format strings
sector_t is still 32-bit on most targets, resulting in compile warnings on debug builds when used with an %llu/%llx format. Fix by always casting the sector to uint64_t. Change-Id: I5afc4a0ae170981c304274806e00ac07be232cd8
This commit is contained in:
parent
d21d8f49fc
commit
28fa9ca760
1 changed files with 2 additions and 2 deletions
|
|
@ -2465,7 +2465,7 @@ static long transfer(struct bpb *fat_bpb, sector_t start, long count,
|
|||
long rc = 0;
|
||||
|
||||
DEBUGF("%s(s=%llx, c=%lx, wr=%u)\n", __func__,
|
||||
start + fat_bpb->startsector, count, write ? 1 : 0);
|
||||
(uint64_t)(start + fat_bpb->startsector), count, write ? 1 : 0);
|
||||
|
||||
if (write)
|
||||
{
|
||||
|
|
@ -2557,7 +2557,7 @@ long fat_readwrite(struct fat_filestr *filestr, unsigned long sectorcount,
|
|||
file->firstcluster, sectorcount, (long)buf,
|
||||
write ? "write":"read");
|
||||
DEBUGF("%s: sec:%llx numsec:%ld eof:%d\n", __func__,
|
||||
sector, (long)sectornum, eof ? 1 : 0);
|
||||
(uint64_t)sector, (long)sectornum, eof ? 1 : 0);
|
||||
|
||||
eof = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue