Forums - qca4020 Log level definition for console print onbord.c

3 posts / 0 new
Last post
qca4020 Log level definition for console print onbord.c
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Thu, 2020-08-06 12:31

Hello,

We are looking for how to use log level defination for onboard.c

To print log on console we have below macros in onboard.c

#define ONB_ERROR               LOG_ERROR
#define ONB_WARN                LOG_WARN
#define ONB_INFO                LOG_INFO
#define ONB_VERBOSE             LOG_VERBOSE
 
Suppse we want to print log only for ONB_ERROR then from where can we set log level for it.
 
Any help will be appreciated.
 
Thank you,
Regards,
Akshaay
  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2020-08-06 15:18

Kindly refer to @target\quartz\demo\Onboard_demo\src\include\log_util.h, by default all the log levels are mapped to QCLI_Printf.

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Fri, 2020-08-07 00:31

So, what modifications we need to do to remove this default log level that are mapped to QCLI_Printf and implement log levels for 

#define ONB_ERROR               LOG_ERROR
#define ONB_WARN                LOG_WARN
#define ONB_INFO                LOG_INFO
#define ONB_VERBOSE             LOG_VERBOSE

 

Thank You,

Regards,

Akshaay

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.