aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-01-01 21:15:37 +0100
committerTom Rini <trini@konsulko.com>2018-01-19 15:49:28 -0500
commita327bde7838eab7de33b487e3190661fa24dec45 (patch)
tree2585b9a18189370d9e5f99f70c363ea543237cea /fs
parent3cf0061ab52359b14de2db512a1b03d30054e939 (diff)
downloadu-boot-a327bde7838eab7de33b487e3190661fa24dec45.zip
u-boot-a327bde7838eab7de33b487e3190661fa24dec45.tar.gz
u-boot-a327bde7838eab7de33b487e3190661fa24dec45.tar.bz2
fs: remove distractive message in fs_read()
The message "** %s shorter than offset + len **\n" may be interesting when debugging but it does not indicate an error. So we should not write it if we are not in debug mode. Fixes: 7a3e70cfd88c fs/fs.c: read up to EOF when len would read past EOF Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 9c4d67f..6155cb1 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -407,7 +407,7 @@ int fs_read(const char *filename, ulong addr, loff_t offset, loff_t len,
/* If we requested a specific number of bytes, check we got it */
if (ret == 0 && len && *actread != len)
- printf("** %s shorter than offset + len **\n", filename);
+ debug("** %s shorter than offset + len **\n", filename);
fs_close();
return ret;