[PATCH 05/11] spi: dev->id is an int, not a string, fix debug output

Sascha Hauer s.hauer at pengutronix.de
Tue Nov 24 02:59:58 EST 2009


On Mon, Nov 23, 2009 at 01:06:17PM +0100, Marc Kleine-Budde wrote:
> Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
> ---
>  drivers/spi/spi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
> index e8e440a..d955b99 100644
> --- a/drivers/spi/spi.c
> +++ b/drivers/spi/spi.c
> @@ -173,7 +173,7 @@ int spi_register_master(struct spi_master *master)
>  {
>  	int			status = -ENODEV;
>  
> -	debug("%s: %s:%s\n", __FUNCTION__, master->dev->name, master->dev->id);
> +	debug("%s: %s:%d\n", __FUNCTION__, master->dev->name, master->dev->id);

One thing: When touching this line, can you replace __FUNCTION__ with
__func__ please?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list