Re: [PATCH 2/2] bluetooth: Convert BT_DBG to pr_debug |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 2/2] bluetooth: Convert BT_DBG to pr_debug
- From: Andrei Emeltchenko <andrei.emeltchenko.news@xxxxxxxxx>
- Date: Mon, 13 Feb 2012 11:21:01 +0200
- Cc: Marcel Holtmann <marcel@xxxxxxxxxxxx>, "Gustavo F. Padovan" <padovan@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, linux-bluetooth@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx
- In-reply-to: <1329115904.30878.7.camel@joe2Laptop>
- Mail-followup-to: Andrei Emeltchenko <andrei.emeltchenko.news@xxxxxxxxx>, Joe Perches <joe@xxxxxxxxxxx>, Marcel Holtmann <marcel@xxxxxxxxxxxx>, "Gustavo F. Padovan" <padovan@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, linux-bluetooth@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx
- User-agent: Mutt/1.5.21 (2010-09-15)
Hi Joe,
On Sun, Feb 12, 2012 at 10:51:44PM -0800, Joe Perches wrote:
> On Mon, 2012-02-13 at 07:37 +0100, Marcel Holtmann wrote:
> > > No need to obfuscate, just use the normal debugging macro.
> > > Add "\n" to uses, align arguments, coalesce formats.
> > > Fix a typo and fix a bad format extended by a line continuation.
> > what is this patch buying us.
>
> Easier greps of pr_debug.
This depends what are you grepping for: for all usage of pr_debug or only
for bluetooth related debugs ;)
> BT_DBG is just an unnecessary useless wrapper.
I think at some point we need to remove the wrapper and switch to common
debug function like dev_dbg but what is the point just renaming it?
Best regards
Andrei Emeltchenko
>
> > The only useful change would be to move to dev_printk, but we are not
> > there yet.
>
> Maybe dev_dbg, but there isn't always an
> appropriate device * available.
>
> There are many uses of:
> pr_debug("%s ...", (some struct hci_dev *)->name, ...)
>
> that could be something like
>
> hci_dev_dbg((some struct hci_dev *), fmt, ...)
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion]
[Ethernet Bridging]
[Linux Wireless Networking]
[Linux Bluetooth Networking]
[Linux Networking Users]
[VLAN]
[Git]
[IETF Annouce]
[Linux Assembly]
[Security]
[Bugtraq]
[Photo]
[Singles Social Networking]
[Yosemite Information]
[MIPS Linux]
[ARM Linux Kernel]
[ARM Linux]
[Linux Virtualization]
[Linux Security]
[Linux IDE]
[Linux RAID]
[Linux SCSI]
[Free Dating]