Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-06 Thread Joe Perches
On Thu, 2014-03-06 at 11:55 +0100, Laurent Pinchart wrote: > We thus need the #define DEBUG it appear before the first time device.h is > included, either directly or indirectly. Adding #define DEBUG to iss.h won't > work now as iss.h is included after all system includes (which is the usual > p

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-06 Thread Mauro Carvalho Chehab
Em Thu, 06 Mar 2014 12:00:30 +0100 Laurent Pinchart escreveu: > Hi Greg, > > On Wednesday 05 March 2014 20:45:29 Greg Kroah-Hartman wrote: > > On Thu, Mar 06, 2014 at 01:48:29AM +0100, Laurent Pinchart wrote: > > > On Wednesday 05 March 2014 16:28:03 Joe Perches wrote: > > > > On Thu, 2014-03-06

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-06 Thread Laurent Pinchart
Hi Greg, On Wednesday 05 March 2014 20:45:29 Greg Kroah-Hartman wrote: > On Thu, Mar 06, 2014 at 01:48:29AM +0100, Laurent Pinchart wrote: > > On Wednesday 05 March 2014 16:28:03 Joe Perches wrote: > > > On Thu, 2014-03-06 at 00:50 +0100, Laurent Pinchart wrote: > > > > Please note that -DDEBUG is

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-06 Thread Laurent Pinchart
Hi Joe, On Wednesday 05 March 2014 19:25:47 Joe Perches wrote: > On Thu, 2014-03-06 at 02:52 +0100, Laurent Pinchart wrote: > > I've thought about that, but it would require iss.h to be included before > > all other headers. I've also thought about creating an iss-debug.h header > > to be included

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-06 Thread Paul Bolle
On Wed, 2014-03-05 at 20:45 -0800, Greg Kroah-Hartman wrote: > On Thu, Mar 06, 2014 at 01:48:29AM +0100, Laurent Pinchart wrote: > > Would you recommend to drop driver-specific Kconfig options related to > > debugging and use CONFIG_DYNAMIC_DEBUG instead ? > > Yes, please do that, no one wants to

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Greg Kroah-Hartman
On Thu, Mar 06, 2014 at 01:48:29AM +0100, Laurent Pinchart wrote: > Hi Joe, > > On Wednesday 05 March 2014 16:28:03 Joe Perches wrote: > > On Thu, 2014-03-06 at 00:50 +0100, Laurent Pinchart wrote: > > > Please note that -DDEBUG is equivalent to '#define DEBUG', not to '#define > > > CONFIG_DEBUG'

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Joe Perches
On Thu, 2014-03-06 at 02:52 +0100, Laurent Pinchart wrote: Hi again Laurent > I've thought about that, but it would require iss.h to be included before all > other headers. I've also thought about creating an iss-debug.h header to be > included first just to #define DEBUG, but decided to go for

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Laurent Pinchart
Hi Joe, On Wednesday 05 March 2014 17:35:42 Joe Perches wrote: > On Thu, 2014-03-06 at 02:27 +0100, Laurent Pinchart wrote: > > On Wednesday 05 March 2014 17:00:37 Joe Perches wrote: > > > On Thu, 2014-03-06 at 01:48 +0100, Laurent Pinchart wrote: > > > > Would you recommend to drop driver-specifi

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Joe Perches
On Thu, 2014-03-06 at 02:27 +0100, Laurent Pinchart wrote: > On Wednesday 05 March 2014 17:00:37 Joe Perches wrote: > > On Thu, 2014-03-06 at 01:48 +0100, Laurent Pinchart wrote: > > > Would you recommend to drop driver-specific Kconfig options related to > > > debugging and use CONFIG_DYNAMIC_DEBU

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Laurent Pinchart
Hi Joe, On Wednesday 05 March 2014 17:00:37 Joe Perches wrote: > On Thu, 2014-03-06 at 01:48 +0100, Laurent Pinchart wrote: > > Would you recommend to drop driver-specific Kconfig options related to > > debugging and use CONFIG_DYNAMIC_DEBUG instead ? > > For development, sure, if there's suffici

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Joe Perches
On Thu, 2014-03-06 at 01:48 +0100, Laurent Pinchart wrote: > Would you recommend to drop driver-specific Kconfig options related to > debugging and use CONFIG_DYNAMIC_DEBUG instead ? For development, sure, if there's sufficient memory. For embedded systems with limited memory, using dynamic_debu

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Laurent Pinchart
Hi Joe, On Wednesday 05 March 2014 16:28:03 Joe Perches wrote: > On Thu, 2014-03-06 at 00:50 +0100, Laurent Pinchart wrote: > > Please note that -DDEBUG is equivalent to '#define DEBUG', not to '#define > > CONFIG_DEBUG'. 'DEBUG' needs to be defined for dev_dbg() to have any > > effect. > > Not qu

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Joe Perches
On Thu, 2014-03-06 at 00:50 +0100, Laurent Pinchart wrote: > Please note that -DDEBUG is equivalent to '#define DEBUG', not to '#define > CONFIG_DEBUG'. 'DEBUG' needs to be defined for dev_dbg() to have any effect. Not quite. If CONFIG_DYNAMIC_DEBUG is set, these dev_dbg statements are compile

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Laurent Pinchart
Hi Mauro, Thank you for the review. On Wednesday 05 March 2014 17:10:06 Mauro Carvalho Chehab wrote: > Em Tue, 11 Feb 2014 13:38:51 +0100 Laurent Pinchart escreveu: > > On Tuesday 11 February 2014 12:17:01 Paul Bolle wrote: > > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-03-05 Thread Mauro Carvalho Chehab
Em Tue, 11 Feb 2014 13:38:51 +0100 Laurent Pinchart escreveu: > Hi Paul, > > Thank you for the patch. > > On Tuesday 11 February 2014 12:17:01 Paul Bolle wrote: > > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > > camera interface - Build system") added a Kconfig entry for

Re: [PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-02-11 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Tuesday 11 February 2014 12:17:01 Paul Bolle wrote: > Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 > camera interface - Build system") added a Kconfig entry for > VIDEO_OMAP4_DEBUG. But nothing uses that symbol. > > This entry was appare

[PATCH v2] [media] v4l: omap4iss: Add DEBUG compiler flag

2014-02-11 Thread Paul Bolle
Commit d632dfefd36f ("[media] v4l: omap4iss: Add support for OMAP4 camera interface - Build system") added a Kconfig entry for VIDEO_OMAP4_DEBUG. But nothing uses that symbol. This entry was apparently copied from a similar entry for "OMAP 3 Camera debug messages". The OMAP 3 entry is used to set