qcacmn: Add logs in qdf_nbuf_alloc()
In qdf_nbuf_alloc() function, pass function name and line number of caller and log the same in case of failure, this approach helps to remove error logs in caller function there by reducing text segment. Also add qdf_rl and qdf_rl_nofl_* macros. Change-Id: Ib8ce83335807cfbd2d83d1f165d6bec1dc1e4c94 CRs-Fixed: 2281983
This commit is contained in:
@@ -1231,8 +1231,8 @@ wmi_buf_t wmi_buf_alloc_fl(wmi_unified_t wmi_handle, uint32_t len,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
wmi_buf = qdf_nbuf_alloc(NULL, roundup(len + WMI_MIN_HEAD_ROOM, 4),
|
||||
WMI_MIN_HEAD_ROOM, 4, false);
|
||||
wmi_buf = qdf_nbuf_alloc_fl(NULL, roundup(len + WMI_MIN_HEAD_ROOM, 4),
|
||||
WMI_MIN_HEAD_ROOM, 4, false, func, line);
|
||||
if (!wmi_buf)
|
||||
return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user