fs/fat: remove distractive message in file_fat_read_at()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 1 Jan 2018 20:31:58 +0000 (21:31 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2018 20:49:28 +0000 (15:49 -0500)
The message "reading %s\n" may be interesting when
debugging but otherwise it is superfluous.

Only output the message when debugging.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/fat/fat.c

index d16883fa10d4af14be4391c33944dbc7d2a65c13..1283818761d46354dbabb096cde06a090051f0af 100644 (file)
@@ -1106,7 +1106,7 @@ int file_fat_read_at(const char *filename, loff_t pos, void *buffer,
        if (ret)
                goto out_free_both;
 
-       printf("reading %s\n", filename);
+       debug("reading %s\n", filename);
        ret = get_contents(&fsdata, itr->dent, pos, buffer, maxsize, actread);
 
 out_free_both: