Re: [PATCH]bluetooth: hci_sysfs connection bus_id add support for diffrent hci device

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marcel Holtmann <marcel@...>
Cc: David Miller <davem@...>, <linux-kernel@...>, <bluez-devel@...>
Date: Wednesday, October 31, 2007 - 10:20 pm

On 11/1/07, Dave Young <hidave.darkstar@gmail.com> wrote:
Hi,
Sorry for my noise.
Theoretically, for the "%d-%s" version, overwrite is also possible.

hdev->id is u16, imagine the id is 65535, then total length is 21.

IMHO,  temporarily, the ""%s" , hdev->name +3 "version is better,
because the hdev->name len is 8, except for the end nul character,
remain 4 to print, so 4+15 is just KOBJ_NAME_LEN - 1.

Regards
dave
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH]bluetooth: hci_sysfs connection bus_id add suppor..., Dave Young, (Wed Oct 31, 10:20 pm)