[U-Boot] [PATCH] mtd: spi: sf_dataflash: Add print message while erase error

Simon Glass sjg at chromium.org
Thu Aug 3 15:24:10 UTC 2017

On 20 July 2017 at 23:26, Wenyou Yang <wenyou.yang at microchip.com> wrote:
> Add the print message to tell us why the erase operation doesn't work.
> Signed-off-by: Wenyou Yang <wenyou.yang at microchip.com>
> ---
>  drivers/mtd/spi/sf_dataflash.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

In general I think it is bad to print messages in drivers. But we
don't really have a logging mechanism which we could use instead.

More information about the U-Boot mailing list