aboutsummaryrefslogtreecommitdiff
path: root/fs/fat/fat_write.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-13 19:42:47 +0200
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:30 +0200
commit1c381cebb7a67ad2b55e8271bbe344baf060cb85 (patch)
tree2b485a0acd768bb8b650b014b506de8b649f6965 /fs/fat/fat_write.c
parent050cea770a873bc2d9210fb04c4db8fadbaa69ff (diff)
downloadu-boot-1c381cebb7a67ad2b55e8271bbe344baf060cb85.zip
u-boot-1c381cebb7a67ad2b55e8271bbe344baf060cb85.tar.gz
u-boot-1c381cebb7a67ad2b55e8271bbe344baf060cb85.tar.bz2
fs: fat: unaligned buffers are not an error
The FAT driver supports unaligned reads and writes and EFI applications will make use of these. So a misaligned buffer is only worth a debug message. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'fs/fat/fat_write.c')
-rw-r--r--fs/fat/fat_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index 6d3d2d1..fc211e7 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -409,7 +409,7 @@ set_cluster(fsdata *mydata, __u32 clustnum, __u8 *buffer,
if ((unsigned long)buffer & (ARCH_DMA_MINALIGN - 1)) {
ALLOC_CACHE_ALIGN_BUFFER(__u8, tmpbuf, mydata->sect_size);
- printf("FAT: Misaligned buffer address (%p)\n", buffer);
+ debug("FAT: Misaligned buffer address (%p)\n", buffer);
while (size >= mydata->sect_size) {
memcpy(tmpbuf, buffer, mydata->sect_size);