[U-Boot] [PATCH 01/39] DEBUG: Fix debug macros

Joe Hershberger joe.hershberger at gmail.com
Wed Oct 26 00:08:13 CEST 2011


Hi Wolfgang,
On Tue, Oct 25, 2011 at 4:59 PM, Wolfgang Denk <wd at denx.de> wrote:
> Dear =?UTF-8?B?6aas5YWL5rOh?=,
>
> In message <CACCg+XP8zoKGproJ4t=QEQU4ZFYccAPPjsGkz72BKBwowcUQng at mail.gmail.com> you wrote:
>>
>> > I'm working on a patch for the net code that benefits from the debugX
>> > macro.  Especially for the net code, the debug traces can be
>> > overwhelming depending on the issue you are looking at.  I recommend
>> > we keep it around.
> ...
>> I agreed with Joe,
>
> And I disagree.

In the net code, I separated out the debug prints based on
* internal state changes
* any traffic on the network
* packets targeted to the device

I found this very helpful in debugging to limit the volume of traces
depending on what I was looking for.  How would you recommend getting
similar behavior without debugX?

Thanks,
Joe


More information about the U-Boot mailing list