Re: [PATCH] Staging: wlan-ng: fix coding style in hfa834x_usb.c

From: Richard Kennedy
Date: Mon Mar 15 2010 - 05:54:54 EST


On 13/03/10 01:07, ehames@xxxxxxxxx wrote:
> From: Edgardo Hames <ehames@xxxxxxxxx>
>
> This is a patch in hfa834x_usb.c to fix typedef declarations and long lines.
>
> Signed-off-by: Edgardo Hames <ehames@xxxxxxxxx>
> ---
Hi Edgardo,

Definitely a good thing to get rid of the typedefs.

> printk(KERN_ERR
> - "cmd_initialize() failed on two attempts, results %d and %d\n",
> - result1, result2);
> + "cmd_initialize() failed on two attempts,"
> + " results %d and %d\n", result1, result2);
> usb_kill_urb(&hw->rx_urb);

But I don't think you should split up the printk strings (like this one)
as it make them difficult to grep for.


> @@ -3382,8 +3382,9 @@ retry:
> * our request has been acknowledged. Odd,
> * but our OUT URB is still alive...
> */
> - pr_debug
> - ("Causality violation: please reboot Universe, or email linux-wlan-devel@xxxxxxxxxxxxxxxxxxxx\n");
> + pr_debug("Causality violation: "
> + "please reboot Universe, or email "
> + "linux-wlan-devel@xxxxxxxxxxxxxxxxxxxx\n");
> ctlx->state = CTLX_RESP_COMPLETE;
> break;

This mailing list is dead, so there's no point in still directing people
there, so you can just drop the second half of that message.

regards
Richard

--
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/