diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/fat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index f93b32f832..de579f7603 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -737,7 +737,7 @@ static unsigned long find_free_cluster(IF_MV2(struct bpb* fat_bpb,) | |||
737 | cluster numbers out of bounds */ | 737 | cluster numbers out of bounds */ |
738 | if ( c < 2 || c > fat_bpb->dataclusters+1 ) | 738 | if ( c < 2 || c > fat_bpb->dataclusters+1 ) |
739 | continue; | 739 | continue; |
740 | LDEBUGF("find_free_cluster(%x) == %x\n",startcluster,c); | 740 | LDEBUGF("find_free_cluster(%lx) == %x\n",startcluster,c); |
741 | fat_bpb->fsinfo.nextfree = c; | 741 | fat_bpb->fsinfo.nextfree = c; |
742 | return c; | 742 | return c; |
743 | } | 743 | } |
@@ -793,7 +793,7 @@ static int update_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned long entry, | |||
793 | 793 | ||
794 | val &= 0xFFFF; | 794 | val &= 0xFFFF; |
795 | 795 | ||
796 | LDEBUGF("update_fat_entry(%x,%x)\n",entry,val); | 796 | LDEBUGF("update_fat_entry(%lx,%lx)\n",entry,val); |
797 | 797 | ||
798 | if (entry==val) | 798 | if (entry==val) |
799 | panicf("Creating FAT loop: %lx,%lx\n",entry,val); | 799 | panicf("Creating FAT loop: %lx,%lx\n",entry,val); |
@@ -817,7 +817,7 @@ static int update_fat_entry(IF_MV2(struct bpb* fat_bpb,) unsigned long entry, | |||
817 | fat_bpb->fsinfo.freecount++; | 817 | fat_bpb->fsinfo.freecount++; |
818 | } | 818 | } |
819 | 819 | ||
820 | LDEBUGF("update_fat_entry: %d free clusters\n", | 820 | LDEBUGF("update_fat_entry: %lu free clusters\n", |
821 | fat_bpb->fsinfo.freecount); | 821 | fat_bpb->fsinfo.freecount); |
822 | 822 | ||
823 | sec[offset] = htole16(val); | 823 | sec[offset] = htole16(val); |