]> Git Repo - u-boot.git/commitdiff
fs/fat: debug-print file read position during file_fat_read_at()
authorAndreas Dannenberg <[email protected]>
Tue, 14 Aug 2018 02:35:15 +0000 (21:35 -0500)
committerTom Rini <[email protected]>
Mon, 20 Aug 2018 11:21:28 +0000 (07:21 -0400)
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 <[email protected]>
Signed-off-by: Andreas Dannenberg <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
fs/fat/fat.c

index 4efe8a3edaf190a3818c7add5d5243b12ab98828..4b722fc5ca3ddf93477b32e1d46be8b0b8a2952e 100644 (file)
@@ -1095,7 +1095,7 @@ int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
        if (ret)
                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);
 
 out_free_both:
This page took 0.036519 seconds and 4 git commands to generate.