From a5aa1420d26e76a0392dd2d36ae388eb539ccfe6 Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 8 Sep 2020 20:29:35 -0700 Subject: [PATCH] qcacmn: Replace WMI_LOGW() with wmi_* appropriate log level Replace WMI_LOGW() with with wmi_* appropriate log level. Change-Id: Idfc41fed4f31fb197ca8f46d3ed3a4af21f2fdae CRs-Fixed: 2774563 --- wmi/src/wmi_unified_ocb_tlv.c | 4 ++-- wmi/src/wmi_unified_tlv.c | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/wmi/src/wmi_unified_ocb_tlv.c b/wmi/src/wmi_unified_ocb_tlv.c index cd55899c163a..b02c429c6048 100644 --- a/wmi/src/wmi_unified_ocb_tlv.c +++ b/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; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index cbcf23245fe9..c36bde1ebbb1 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/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; }