Re: [PATCHv2 3/5] Bluetooth: Add opcode to error message

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

 



Hi Szymon,

On Fri, Jun 08, 2012 at 01:17:42PM +0200, Szymon Janc wrote:
> > -	BT_ERR("%s command tx timeout", hdev->name);
> > +	if (hdev->sent_cmd) {
> > +		struct hci_command_hdr *sent = (void *) hdev->sent_cmd->data;
> > +		u16 opcode = __le16_to_cpu(sent->opcode);
> > +
> > +		BT_ERR("%s command 0x%4.4x tx timeout", hdev->name, opcode);
> > +	} else
> > +		BT_ERR("%s command tx timeout", hdev->name);
> > +
> 
> Just a minor, 'else' should have braces as well.

Sure, thanks for pointing out. I will send updated version soon.

Best regards 
Andrei Emeltchenko 

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux