Re: [PATCH 4/6] keucr: more readable and friendly error messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 06, 2013 at 06:10:48PM +0200, Johannes Schilling wrote:
> @@ -71,7 +71,9 @@ int ENE_SMInit(struct us_data *us)
>  
>  	result = ENE_LoadBinCode(us, SM_INIT_PATTERN);
>  	if (result != USB_STOR_XFER_GOOD) {
> -		dev_info(&us->pusb_dev->dev, "Load SM Init Code Fail !!\n");
> +		dev_info(&us->pusb_dev->dev,
> +			 "Failed to load SmartMedia init code\n: result= %x\n",
> +			 result);

It doens't work to put newlines in the middle of a printk().  It
has to go at the end.  The reason is that dev_xxx() functions add
something to the beginning of lines.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux