diff options
Diffstat (limited to 'firmware/drivers/fat.c')
-rw-r--r-- | firmware/drivers/fat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 424e2ba640..a090bd5899 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -812,7 +812,7 @@ static long get_next_cluster16(struct bpb *fat_bpb, long startcluster) | |||
812 | if (!sec) | 812 | if (!sec) |
813 | { | 813 | { |
814 | dc_unlock_cache(); | 814 | dc_unlock_cache(); |
815 | DEBUGF("%s: Could not cache sector %d\n", __func__, sector); | 815 | DEBUGF("%s: Could not cache sector %lu\n", __func__, sector); |
816 | return -1; | 816 | return -1; |
817 | } | 817 | } |
818 | 818 | ||
@@ -851,7 +851,7 @@ static long find_free_cluster16(struct bpb *fat_bpb, long startcluster) | |||
851 | if (c < 2 || c > fat_bpb->dataclusters + 1) | 851 | if (c < 2 || c > fat_bpb->dataclusters + 1) |
852 | continue; | 852 | continue; |
853 | 853 | ||
854 | DEBUGF("%s(%lx) == %x\n", __func__, startcluster, c); | 854 | DEBUGF("%s(%lx) == %lx\n", __func__, startcluster, c); |
855 | 855 | ||
856 | fat_bpb->fsinfo.nextfree = c; | 856 | fat_bpb->fsinfo.nextfree = c; |
857 | return c; | 857 | return c; |
@@ -887,7 +887,7 @@ static int update_fat_entry16(struct bpb *fat_bpb, unsigned long entry, | |||
887 | if (!sec) | 887 | if (!sec) |
888 | { | 888 | { |
889 | dc_unlock_cache(); | 889 | dc_unlock_cache(); |
890 | DEBUGF("Could not cache sector %u\n", sector); | 890 | DEBUGF("Could not cache sector %lu\n", sector); |
891 | return -1; | 891 | return -1; |
892 | } | 892 | } |
893 | 893 | ||
@@ -2101,7 +2101,7 @@ int fat_remove(struct fat_file *file, enum fat_remove_op what) | |||
2101 | if (file->firstcluster == fat_bpb->bpb_rootclus) | 2101 | if (file->firstcluster == fat_bpb->bpb_rootclus) |
2102 | { | 2102 | { |
2103 | DEBUGF("Trying to remove root of volume %d\n", | 2103 | DEBUGF("Trying to remove root of volume %d\n", |
2104 | IF_MV_VOL(info->volume)); | 2104 | IF_MV_VOL(file->volume)); |
2105 | FAT_ERROR(-2); | 2105 | FAT_ERROR(-2); |
2106 | } | 2106 | } |
2107 | 2107 | ||