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-2017,2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2017,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,14 +24,14 @@
|
||||
#ifndef _CDP_TXRX_STATS_H_
|
||||
#define _CDP_TXRX_STATS_H_
|
||||
#include <cdp_txrx_ops.h>
|
||||
#include <cdp_txrx_cmn.h>
|
||||
|
||||
static inline QDF_STATUS
|
||||
cdp_clear_stats(ol_txrx_soc_handle soc, uint8_t pdev_id, uint8_t bitmap)
|
||||
{
|
||||
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance", __func__);
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
QDF_BUG(0);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
@@ -48,8 +48,7 @@ cdp_stats(ol_txrx_soc_handle soc, uint8_t vdev_id, char *buffer,
|
||||
unsigned int buf_len)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance", __func__);
|
||||
dp_cdp_debug("Invalid Instance");
|
||||
QDF_BUG(0);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user