qcacmn: Change log level for qdf_mem_malloc failure
The non debug version of qdf_mem_malloc logs allocation failures at WARN trace level and the debug version uses ERROR trace level. Also the default log level for QDF component is set to ERROR, so with this, for failures in the non debug version of qdf_mem_malloc, we would not see any logs. Changing the log level to ERROR for failures logs in the non debug version of qdf_mem_malloc. Change-Id: I1e28cddfac8f909dec6e3bf6c3beb368953cd357 CRs-Fixed: 2397096
This commit is contained in:
@@ -1141,8 +1141,8 @@ void *qdf_mem_malloc_fl(size_t size, const char *func, uint32_t line)
|
||||
|
||||
ptr = kzalloc(size, qdf_mem_malloc_flags());
|
||||
if (!ptr) {
|
||||
qdf_nofl_warn("Failed to malloc %zuB @ %s:%d",
|
||||
size, func, line);
|
||||
qdf_nofl_err("Failed to malloc %zuB @ %s:%d",
|
||||
size, func, line);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user