Procházet zdrojové kódy

qcacmn: Replace WMI_LOGW() with wmi_* appropriate log level

Replace WMI_LOGW() with  with wmi_* appropriate log level.

Change-Id: Idfc41fed4f31fb197ca8f46d3ed3a4af21f2fdae
CRs-Fixed: 2774563
Srinivas Girigowda před 4 roky
rodič
revize
a5aa1420d2
2 změnil soubory, kde provedl 5 přidání a 7 odebrání
  1. 2 2
      wmi/src/wmi_unified_ocb_tlv.c
  2. 3 5
      wmi/src/wmi_unified_tlv.c

+ 2 - 2
wmi/src/wmi_unified_ocb_tlv.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2020 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
@@ -744,7 +744,7 @@ static QDF_STATUS extract_ocb_dcc_stats_tlv(wmi_unified_t wmi_handle,
 	if (fix_param->num_channels > ((WMI_SVC_MSG_MAX_SIZE -
 	    sizeof(*fix_param)) / sizeof(wmi_dcc_ndl_stats_per_channel)) ||
 	    fix_param->num_channels > param_tlvs->num_stats_per_channel_list) {
-		WMI_LOGW("%s: too many channels:%d actual:%d", __func__,
+		wmi_warn("Too many channels:%d actual:%d",
 			 fix_param->num_channels,
 			 param_tlvs->num_stats_per_channel_list);
 		*resp = NULL;

+ 3 - 5
wmi/src/wmi_unified_tlv.c

@@ -1264,7 +1264,7 @@ static QDF_STATUS send_peer_param_cmd_tlv(wmi_unified_t wmi,
 
 	param_id = convert_host_peer_param_id_to_target_id_tlv(param->param_id);
 	if (param_id == WMI_UNAVAILABLE_PARAM) {
-		WMI_LOGW("%s: Unavailable param %d", __func__, param->param_id);
+		wmi_err("Unavailable param %d", param->param_id);
 		return QDF_STATUS_E_NOSUPPORT;
 	}
 
@@ -1650,8 +1650,7 @@ send_pdev_param_cmd_tlv(wmi_unified_t wmi_handle,
 
 	pdev_param = convert_host_pdev_param_tlv(param->param_id);
 	if (pdev_param == WMI_UNAVAILABLE_PARAM) {
-		WMI_LOGW("%s: Unavailable param %d",
-				__func__, param->param_id);
+		wmi_err("Unavailable param %d", param->param_id);
 		return QDF_STATUS_E_INVAL;
 	}
 
@@ -2087,8 +2086,7 @@ static QDF_STATUS send_vdev_set_param_cmd_tlv(wmi_unified_t wmi_handle,
 
 	vdev_param = convert_host_vdev_param_tlv(param->param_id);
 	if (vdev_param == WMI_UNAVAILABLE_PARAM) {
-		WMI_LOGW("%s:Vdev param %d not available", __func__,
-				param->param_id);
+		wmi_err("Vdev param %d not available", param->param_id);
 		return QDF_STATUS_E_INVAL;
 
 	}