* [U-Boot] [PATCH 1/1] fs: remove distractive message in fs_read()
@ 2018-01-01 20:15 Heinrich Schuchardt
2018-01-03 16:42 ` Simon Glass
2018-01-19 21:13 ` [U-Boot] [U-Boot, " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-01-01 20:15 UTC (permalink / raw)
To: u-boot
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>
---
fs/fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fs.c b/fs/fs.c
index 9c4d67faf8..6155cb1daf 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;
--
2.14.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 1/1] fs: remove distractive message in fs_read()
2018-01-01 20:15 [U-Boot] [PATCH 1/1] fs: remove distractive message in fs_read() Heinrich Schuchardt
@ 2018-01-03 16:42 ` Simon Glass
2018-01-19 21:13 ` [U-Boot] [U-Boot, " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Simon Glass @ 2018-01-03 16:42 UTC (permalink / raw)
To: u-boot
On 1 January 2018 at 13:15, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> 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>
> ---
> fs/fs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [U-Boot, 1/1] fs: remove distractive message in fs_read()
2018-01-01 20:15 [U-Boot] [PATCH 1/1] fs: remove distractive message in fs_read() Heinrich Schuchardt
2018-01-03 16:42 ` Simon Glass
@ 2018-01-19 21:13 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2018-01-19 21:13 UTC (permalink / raw)
To: u-boot
On Mon, Jan 01, 2018 at 09:15:37PM +0100, Heinrich Schuchardt wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180119/ff307532/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-19 21:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-01 20:15 [U-Boot] [PATCH 1/1] fs: remove distractive message in fs_read() Heinrich Schuchardt
2018-01-03 16:42 ` Simon Glass
2018-01-19 21:13 ` [U-Boot] [U-Boot, " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.