[U-Boot] [PATCH] spi: zynq_spi: Simplify debug macro

Jagan Teki jteki at openedev.com
Thu Aug 13 20:37:15 CEST 2015


On 22 July 2015 at 12:05, Michal Simek <michal.simek at xilinx.com> wrote:
> Trivial fix.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---

Reviewed-by: Jagan Teki <jteki at openedev.com>

>
>  drivers/spi/zynq_spi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c
> index c5c3e1044fda..45ed7d94a93f 100644
> --- a/drivers/spi/zynq_spi.c
> +++ b/drivers/spi/zynq_spi.c
> @@ -79,7 +79,7 @@ static int zynq_spi_ofdata_to_platdata(struct udevice *bus)
>                                         250000000);
>         plat->speed_hz = plat->frequency / 2;
>
> -       debug("zynq_spi_ofdata_to_platdata: regs=%p max-frequency=%d\n",
> +       debug("%s: regs=%p max-frequency=%d\n", __func__,
>               plat->regs, plat->frequency);
>
>         return 0;
> --
> 2.3.5
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Jagan | openedev.


More information about the U-Boot mailing list