Re: printk or pr_level?

2014-07-24 Thread Arlie Stephens
Thank-you Greg On Jul 23 2014, Greg KH wrote: On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking

Re: printk or pr_level?

2014-07-23 Thread Kristofer Hallin
1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise pr_debug will always work and is always preferred over printk. 2. Use pr_debug. On Wed, Jul 23, 2014 at 8:16 PM,

Re: printk or pr_level?

2014-07-23 Thread Fernando ApesteguĂ­a
On Wed, Jul 23, 2014 at 8:34 PM, Kristofer Hallin kristofer.hal...@gmail.com wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise pr_debug will always work

Re: printk or pr_level?

2014-07-23 Thread Arlie Stephens
On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise pr_debug will always work and is always preferred over printk. Why?

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 04:00:04PM -0700, Greg KH wrote: On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the

Re: printk or pr_level?

2014-07-23 Thread Raphael Silva
Hi guys, Thanks for the help, I learned a lot of new things. On 7/23/14, 8:00 PM, Greg KH wrote: On Wed, Jul 23, 2014 at 04:00:04PM -0700, Greg KH wrote: On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what