qcacmn: Use function name instead of file name in debug logs

Replace all instance of file name to function name in debug logs.

Change-Id: Iff731675772859f02c975005b2656eaa41c6f360
CRs-Fixed: 2377894
This commit is contained in:
Arif Hussain 2018-08-09 16:11:14 -07:00 • committed by nshrivas
commit 61847a9ba6
8 changed files with 158 additions and 159 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -95,14 +95,14 @@ QDF_STATUS wbuff_module_deregister(struct wbuff_mod_handle *hdl);
* wbuff_buff_get() - return buffer to the requester
* @handle: wbuff_handle corresponding to the module
* @len: length of buffer requested
* file_name: file from which buffer is requested
* line_num: line number in the file
* @func_name: function from which buffer is requested
* @line_num: line number in the file
*
* Return: Network buffer if success
* NULL if failure
*/
qdf_nbuf_t wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len,
uint8_t *file_name, uint32_t line_num);
const char *func_name, uint32_t line_num);
/**
* wbuff_buff_put() - put the buffer back to wbuff pool
@ -139,7 +139,7 @@ static inline QDF_STATUS wbuff_module_deregister(struct wbuff_mod_handle *hdl)
}
static inline qdf_nbuf_t
wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len, int8_t *file_name,
wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len, const char *func_name,
uint32_t line_num)
{
return NULL;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -297,7 +297,7 @@ QDF_STATUS wbuff_module_deregister(struct wbuff_mod_handle *hdl)
}
qdf_nbuf_t wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len,
uint8_t *file_name, uint32_t line_num)
const char *func_name, uint32_t line_num)
{
struct wbuff_handle *handle;
struct wbuff_module *mod = NULL;
@ -324,7 +324,7 @@ qdf_nbuf_t wbuff_buff_get(struct wbuff_mod_handle *hdl, uint32_t len,
qdf_spin_unlock_bh(&mod->lock);
if (buf) {
qdf_nbuf_set_next(buf, NULL);
qdf_net_buf_debug_update_node(buf, file_name, line_num);
qdf_net_buf_debug_update_node(buf, func_name, line_num);
}
return buf;