qcacmn: Add shared print_ctrl_obj for qdf_trace_msg

At this point lot of Win code already uses QDF_TRACE macro. It will be
difficult to translate QDF_TRACE to qdf_trace_msg unless all the modules
(already using QDF_TRACE) make changes to use the qdf_print_ctrl
framework. Until that happens, we can have a shared object temporarily
so that wlan_log_to_user and hence user space logging of messages can be
in place

Change-Id: Ia149b86de8c2c36ed1c8508570b31db25f6bc41e
CRs-Fixed: 2018767
Esse commit está contido em:
Adil Saeed Musthafa
2017-03-13 12:13:47 -07:00
commit de Sandeep Puligilla
commit 3318807269
7 arquivos alterados com 110 adições e 10 exclusões

Ver arquivo

@@ -598,6 +598,15 @@ int qdf_print_ctrl_register(const struct category_info *cinfo,
void *custom_ctx,
const char *pctrl_name);
/**
* qdf_shared_print_ctrl_init() - Initialize the shared print ctrl obj with
* all categories set to the default level
*
* Return : void
*
*/
void qdf_shared_print_ctrl_init(void);
/**
* qdf_print_setup() - Setup default values to all the print control objects
*
@@ -619,6 +628,15 @@ QDF_STATUS qdf_print_setup(void);
*/
QDF_STATUS qdf_print_ctrl_cleanup(unsigned int idx);
/**
* qdf_print_ctrl_shared_cleanup() - Clean up of the shared object
*
* Cleanup the shared print-ctrl-object
*
* Return : void
*/
void qdf_shared_print_ctrl_cleanup(void);
/**
* qdf_print_set_category_verbose() - Enable/Disable category for a
* print control object with