qcacmn: Modify logs for QDF_MODULE_ID_CDP
Use macros like dp_cdp_debug, dp_cdp_err, dp_cdp_info to print logs for QDF_MODULE_ID_CDP Change-Id: I550eefa82c3417b8bf83378d4a9c6f382098fea6 CRs-Fixed: 2855937
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019,2021 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
|
||||
@@ -24,6 +24,7 @@
|
||||
#ifndef _CDP_TXRX_FC_V2_H_
|
||||
#define _CDP_TXRX_FC_V2_H_
|
||||
#include <cdp_txrx_ops.h>
|
||||
#include <cdp_txrx_cmn.h>
|
||||
|
||||
/**
|
||||
* cdp_register_pause_cb() - Register flow control callback function pointer
|
||||
@@ -39,8 +40,7 @@ cdp_register_pause_cb(ol_txrx_soc_handle soc,
|
||||
tx_pause_callback pause_cb)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
dp_cdp_debug("invalid instance");
|
||||
QDF_BUG(0);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
@@ -67,8 +67,7 @@ cdp_set_desc_global_pool_size(ol_txrx_soc_handle soc,
|
||||
uint32_t num_msdu_desc)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
dp_cdp_debug("invalid instance");
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
@@ -93,8 +92,7 @@ static inline void
|
||||
cdp_dump_flow_pool_info(struct cdp_soc_t *soc)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
dp_cdp_debug("invalid instance");
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
@@ -117,8 +115,7 @@ static inline bool
|
||||
cdp_tx_desc_thresh_reached(struct cdp_soc_t *soc, uint8_t vdev_id)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s invalid instance", __func__);
|
||||
dp_cdp_debug("invalid instance");
|
||||
QDF_BUG(0);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user