mirror of
https://xff.cz/git/u-boot/
synced 2025-09-06 19:22:11 +02:00
fs/fat: debug-print file read position during file_fat_read_at()
In order to make the debug print in file_fat_read_at() a tad more useful, show the offset the file is being read at alongside the filename. Suggested-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
committed by
Tom Rini
parent
94cb986e5e
commit
287c04e11a
@@ -1095,7 +1095,7 @@ int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out_free_both;
|
goto out_free_both;
|
||||||
|
|
||||||
debug("reading %s\n", filename);
|
debug("reading %s at pos %llu\n", filename, pos);
|
||||||
ret = get_contents(&fsdata, itr->dent, pos, buffer, maxsize, actread);
|
ret = get_contents(&fsdata, itr->dent, pos, buffer, maxsize, actread);
|
||||||
|
|
||||||
out_free_both:
|
out_free_both:
|
||||||
|
Reference in New Issue
Block a user