qcacld-3.0: correct module id in log messages
SAP module dubug message log contains QDF
module id.
Replace cds_err API with QDF_TRACE API to
log the correct module id in debug messages.
Change-Id: Ib39a95cd0688d6029c802c4710127a4c72ae6411
CRs-Fixed: 1098145
diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c
index a57088a..d9018fa 100644
--- a/core/sap/src/sap_fsm.c
+++ b/core/sap/src/sap_fsm.c
@@ -2538,7 +2538,8 @@
SAP_OPEN_SESSION_TIMEOUT);
if (!QDF_IS_STATUS_SUCCESS(status)) {
- cds_err("wait for sap open session event timed out");
+ QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
+ "wait for sap open session event timed out");
return QDF_STATUS_E_FAILURE;
}
@@ -4817,7 +4818,8 @@
QDF_ARRAY_SIZE(pcl.weight_list));
}
if (status != QDF_STATUS_SUCCESS) {
- cds_err("Get PCL failed");
+ QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
+ "Get PCL failed");
return status;
}
for (i = 0; i <= pcl.pcl_len; i++) {