[Uboot-stm32] [PATCH] log: force DEBUG when LOG_DEBUG is activated
Patrick DELAUNAY
patrick.delaunay at foss.st.com
Wed Jul 6 16:52:17 UTC 2022
Hi Simon
On 7/5/22 11:47, Simon Glass wrote:
> Hi Patrick,
>
> On Thu, 30 Jun 2022 at 11:33, Patrick Delaunay
> <patrick.delaunay at foss.st.com> wrote:
>> When CONFIG_LOG is activated, if LOG_DEBUG is defined in a file and
>> DEBUG is not defined the trace with debug() macro are not displayed,
>> because the parameter cond : _DEBUG = 0 is checked in debug_cond().
>>
>> With this patch the define DEBUG, used to force the trace generated by
>> debug() macro, is linked with the define LOG_DEBUG, used to force the
>> trace generated by other macros (log_debug, dev_dbg, pr_debug).
>>
>> We only need to define LOG_DEBUG in a file to activate all the
>> traces generated by any U-Boot debug macro, as it is described in
>> /doc/develop/logging.rst
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
>> ---
>>
>> include/log.h | 3 +++
>> 1 file changed, 3 insertions(+)
> I think this is OK.
>
> Can you please update 'Using DEBUG' in doc/develop/logging.rst ?
yes, I prepare a V2
>
> Regards,
> Simon
> _______________________________________________
> Uboot-stm32 mailing list
> Uboot-stm32 at st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32
Regards
Patrick
More information about the Uboot-stm32
mailing list