mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
storage: Misc corrections and cleanups
* Make the partial sector logic a little clearer (no functional change) * Corrections for debugging messages * Also use MAX_VIRT_SECTOR_SIZE in BOUNCE_BUFFER calculations Change-Id: I89363824b092b2e3bddd5e0f75bf81200c9bc513
This commit is contained in:
parent
127b583a4d
commit
dfbbfb12d4
3 changed files with 55 additions and 56 deletions
|
@ -120,7 +120,7 @@ static int flush_cache(struct filestr_desc *file)
|
|||
int rc;
|
||||
struct filestr_cache *cachep = file->stream.cachep;
|
||||
|
||||
DEBUGF("Flushing dirty sector cache (%lu)\n", cachep->sector);
|
||||
DEBUGF("Flushing dirty sector cache (%llu)\n", (uint64_t)cachep->sector);
|
||||
|
||||
if (fat_query_sectornum(&file->stream.fatstr) != cachep->sector)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue