mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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: 7a3e70cfd8
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>
This commit is contained in:

committed by
Tom Rini

parent
3cf0061ab5
commit
a327bde783
2
fs/fs.c
2
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 we requested a specific number of bytes, check we got it */
|
||||||
if (ret == 0 && len && *actread != len)
|
if (ret == 0 && len && *actread != len)
|
||||||
printf("** %s shorter than offset + len **\n", filename);
|
debug("** %s shorter than offset + len **\n", filename);
|
||||||
fs_close();
|
fs_close();
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user