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

Marc Kleine-Budde mkl at pengutronix.de
Tue Nov 24 04:03:45 EST 2009


Sascha Hauer wrote:
> 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?

fixed

Marc
-- 
Pengutronix e.K.                         | Marc Kleine-Budde           |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924     |
Vertretung West/Dortmund                 | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686         | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20091124/24dc9133/attachment.sig>


More information about the barebox mailing list