diff options
Diffstat (limited to 'fatfs')
-rw-r--r-- | fatfs/fat.c | 2 | ||||
-rw-r--r-- | fatfs/fatfs.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fatfs/fat.c b/fatfs/fat.c index 4eb4b063..f2f67aa6 100644 --- a/fatfs/fat.c +++ b/fatfs/fat.c @@ -151,7 +151,7 @@ fat_read_sblock (void) error (1, 0, "Number of total sectors is zero"); if (bytes_per_sector & (store->block_size - 1)) - error (1, 0, "Block size of filesystem is not + error (1, 0, "Block size of filesystem is not" " a multiple of the block size of the store"); if (read_word (sblock->reserved_sectors) == 0) diff --git a/fatfs/fatfs.h b/fatfs/fatfs.h index 167ad583..943ccad3 100644 --- a/fatfs/fatfs.h +++ b/fatfs/fatfs.h @@ -96,14 +96,14 @@ extern struct dirrect dr_root_node; #define LOG2_BLOCKS_PER_CLUSTER \ - (log2_bytes_per_cluster - store->logs2_block_size) + (log2_bytes_per_cluster - store->log2_block_size) #define round_cluster(offs) \ ((((offs) + bytes_per_cluster - 1) \ >> log2_bytes_per_cluster) << log2_bytes_per_cluster) #define FAT_FIRST_CLUSTER_BLOCK(cluster) \ - (((cluster - 2) << LOG2_BLOCKS_PER_CLUSTER) + + (((cluster - 2) << LOG2_BLOCKS_PER_CLUSTER) + \ (first_data_byte >> store->log2_block_size)) void drop_pager_softrefs (struct node *); |