Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Aidan MacDonald and committed by
Solomon Peachy
28fa9ca7 d21d8f49

+2 -2
+2 -2
firmware/common/fat.c
··· 2465 2465 long rc = 0; 2466 2466 2467 2467 DEBUGF("%s(s=%llx, c=%lx, wr=%u)\n", __func__, 2468 - start + fat_bpb->startsector, count, write ? 1 : 0); 2468 + (uint64_t)(start + fat_bpb->startsector), count, write ? 1 : 0); 2469 2469 2470 2470 if (write) 2471 2471 { ··· 2557 2557 file->firstcluster, sectorcount, (long)buf, 2558 2558 write ? "write":"read"); 2559 2559 DEBUGF("%s: sec:%llx numsec:%ld eof:%d\n", __func__, 2560 - sector, (long)sectornum, eof ? 1 : 0); 2560 + (uint64_t)sector, (long)sectornum, eof ? 1 : 0); 2561 2561 2562 2562 eof = false; 2563 2563