Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1201052 > unrolled thread
| Started by | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| First post | 2015-08-05 20:40 +0200 |
| Last post | 2015-08-05 21:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/7] tty: core: Add tty_debug() for printk(KERN_DEBUG) messages Peter Hurley <peter@hurleysoftware.com> - 2015-08-05 20:40 +0200
Re: [PATCH 2/7] tty: core: Add tty_debug() for printk(KERN_DEBUG) messages Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-08-05 21:30 +0200
| From | Peter Hurley <peter@hurleysoftware.com> |
|---|---|
| Date | 2015-08-05 20:40 +0200 |
| Subject | Re: [PATCH 2/7] tty: core: Add tty_debug() for printk(KERN_DEBUG) messages |
| Message-ID | <pUbLA-15n-3@gated-at.bofh.it> |
On 07/23/2015 09:35 PM, Greg Kroah-Hartman wrote: > On Sun, Jul 12, 2015 at 10:49:08PM -0400, Peter Hurley wrote: >> Introduce tty_debug() macro to output uniform debug information for >> tty core debug messages (function name and tty name). >> >> Note: printk(KERN_DEBUG) is retained here over pr_debug() since >> messages can be enabled in non-DEBUG builds. > > But pr_debug() is the "standard" way to enable/disable debugging > messages, so I'd really like to see that be used here. Ok, I can do that; I'll roll Joe's suggestions in at that time. > Even better, this is a tty device, so it should be using dev_dbg(), > which gives us tons of good information built-in for the tty and can > properly be parsed by userspace tools to know exactly what device caused > what message at what point in time. > > So I'll take this for now, but moving it to use dev_dbg() would be best > eventually. The issue with using dev_dbg is that (SysV) ptys are not devices. However, if you'd prefer, I could rework this macro to format output like dev_dbg; ie., <driver> <tty name>: <fmt> Regards, Peter Hurley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2015-08-05 21:30 +0200 |
| Message-ID | <pUcxY-2g8-23@gated-at.bofh.it> |
| In reply to | #1201052 |
On Wed, Aug 05, 2015 at 02:33:37PM -0400, Peter Hurley wrote: > On 07/23/2015 09:35 PM, Greg Kroah-Hartman wrote: > > On Sun, Jul 12, 2015 at 10:49:08PM -0400, Peter Hurley wrote: > >> Introduce tty_debug() macro to output uniform debug information for > >> tty core debug messages (function name and tty name). > >> > >> Note: printk(KERN_DEBUG) is retained here over pr_debug() since > >> messages can be enabled in non-DEBUG builds. > > > > But pr_debug() is the "standard" way to enable/disable debugging > > messages, so I'd really like to see that be used here. > > Ok, I can do that; I'll roll Joe's suggestions in at that time. > > > Even better, this is a tty device, so it should be using dev_dbg(), > > which gives us tons of good information built-in for the tty and can > > properly be parsed by userspace tools to know exactly what device caused > > what message at what point in time. > > > > So I'll take this for now, but moving it to use dev_dbg() would be best > > eventually. > > The issue with using dev_dbg is that (SysV) ptys are not devices. True :( > However, > if you'd prefer, I could rework this macro to format output like dev_dbg; > ie., <driver> <tty name>: <fmt> That would be good, as that's what userspace is expecting the messages to look like. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web