All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
@ 2010-08-11 21:39 Stefano Babic
  2010-08-11 22:00 ` Wolfgang Denk
  2010-08-11 22:11 ` Reinhard Meyer
  0 siblings, 2 replies; 5+ messages in thread
From: Stefano Babic @ 2010-08-11 21:39 UTC (permalink / raw)
  To: u-boot

Use DEBUG as usual to print debug output.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 drivers/usb/gadget/ether.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 3d871fa..e0ebf75 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -31,7 +31,11 @@
 #include "gadget_chips.h"
 
 #define USB_NET_NAME "usb0"
+#ifdef DEBUG
+#define dprintf printf
+#else
 #define dprintf(x, ...)
+#endif
 #undef INFO
 #define INFO(x, s...)	printf(s)
 #define dev_err(x, stuff...) printf(stuff)
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
  2010-08-11 21:39 [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c Stefano Babic
@ 2010-08-11 22:00 ` Wolfgang Denk
  2010-08-12  8:48   ` Stefano Babic
  2010-08-11 22:11 ` Reinhard Meyer
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2010-08-11 22:00 UTC (permalink / raw)
  To: u-boot

Dear Stefano Babic,

In message <1281562797-6408-1-git-send-email-sbabic@denx.de> you wrote:
> Use DEBUG as usual to print debug output.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>

I guess these patches are some sort of series, and eventually have to
be applied in a specific order?  Please number such patch series,
then.

In this case, please provide information about the sequence in which
the patches should be applied....

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is undignified for a woman to play servant to a man who is not
hers.
	-- Spock, "Amok Time", stardate 3372.7

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
  2010-08-11 21:39 [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c Stefano Babic
  2010-08-11 22:00 ` Wolfgang Denk
@ 2010-08-11 22:11 ` Reinhard Meyer
  2010-08-12  9:31   ` Stefano Babic
  1 sibling, 1 reply; 5+ messages in thread
From: Reinhard Meyer @ 2010-08-11 22:11 UTC (permalink / raw)
  To: u-boot

Dear Stefano Babic,
> Use DEBUG as usual to print debug output.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  drivers/usb/gadget/ether.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
> index 3d871fa..e0ebf75 100644
> --- a/drivers/usb/gadget/ether.c
> +++ b/drivers/usb/gadget/ether.c
> @@ -31,7 +31,11 @@
>  #include "gadget_chips.h"
>  
>  #define USB_NET_NAME "usb0"
> +#ifdef DEBUG
> +#define dprintf printf
> +#else
>  #define dprintf(x, ...)
> +#endif
>  #undef INFO
>  #define INFO(x, s...)	printf(s)
>  #define dev_err(x, stuff...) printf(stuff)

Why not use the globally defined debug() [include/common.h, line 119]
macro for that?

Reinhard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
  2010-08-11 22:00 ` Wolfgang Denk
@ 2010-08-12  8:48   ` Stefano Babic
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2010-08-12  8:48 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> Dear Stefano Babic,
>

Hi Wolfgang,

> In message <1281562797-6408-1-git-send-email-sbabic@denx.de> you wrote:
>> Use DEBUG as usual to print debug output.
>>
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
> 
> I guess these patches are some sort of series, and eventually have to
> be applied in a specific order?  Please number such patch series,
> then.

Well, because the patches are not correlated among them and they fix
different issues, I thought it should be better to send them as single
patches. However, I admit it is to me easier to send them as patch
series, as git format-patch does the job for me.

If no one complains, I will resubmit the next version as patch series.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c
  2010-08-11 22:11 ` Reinhard Meyer
@ 2010-08-12  9:31   ` Stefano Babic
  0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2010-08-12  9:31 UTC (permalink / raw)
  To: u-boot

Reinhard Meyer wrote:
> Dear Stefano Babic,

Hi Reinhard,

> Why not use the globally defined debug() [include/common.h, line 119]
> macro for that?

Probably the only reason is I was too lazy to fix it globally....

Rather there is a lot of files / drivers that implement their own set of
debug functions, mainly because they were ported from Linux where we
have other mechanisms.

I agree with you and I will post a patch to fix the debug issue globally.

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-12  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11 21:39 [U-Boot] [PATCH] USB-CDC: Added debug output to ether.c Stefano Babic
2010-08-11 22:00 ` Wolfgang Denk
2010-08-12  8:48   ` Stefano Babic
2010-08-11 22:11 ` Reinhard Meyer
2010-08-12  9:31   ` Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.