Re: sddr09: don't hide real errors in debug prints

From: Andries Brouwer
Date: Mon Oct 04 2004 - 14:22:31 EST


On Mon, Oct 04, 2004 at 06:13:51PM +0200, Pavel Machek wrote:

> sddr09 hides in debug prints. That seems wrong and this fixes
> it. Please apply,
> Pavel
>
> --- tmp/linux/drivers/usb/storage/sddr09.c 2004-10-01 00:30:20.000000000 +0200
> +++ linux/drivers/usb/storage/sddr09.c 2004-10-01 00:47:53.000000000 +0200
> @@ -370,7 +371,7 @@
> result = sddr09_send_scsi_command(us, command, 12);
>
> if (result != USB_STOR_TRANSPORT_GOOD) {
> - US_DEBUGP("Result for send_control in sddr09_read2%d %d\n",
> + printk(KERN_WARNING "Error in send_control in sddr09_read2%d %d\n",
> x, result);
> return result;
> }

Hmm. I have no serious objections -- this is just a little kernel bloat,
but on the other hand, I don't see the point. Why do you want a printk
when some intermediate routine passes an error from a lower level
to a higher level?

When debugging that may be useful. But otherwise?


Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/