瀏覽代碼

qcacmn: Rate limit wmi ext2 service null error log

For some platform, ext2 service bitmap is not supported. So rate
limit the wmi ext2 service bitmap NULL error log to avoid
excessive console logging.

Change-Id: I383632669e4e4a59dd9e6e3ce82626a7cd3e42b3
CRs-Fixed: 2949180
Paul Zhang 4 年之前
父節點
當前提交
fa7cf78ebf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      wmi/src/wmi_unified_tlv.c

+ 2 - 2
wmi/src/wmi_unified_tlv.c

@@ -5358,8 +5358,8 @@ static bool is_service_enabled_tlv(wmi_unified_t wmi_handle,
 	}
 
 	if (service_id >= WMI_MAX_EXT_SERVICE) {
-		wmi_err("Service id %d but WMI ext2 service bitmap is NULL",
-			service_id);
+		wmi_err_rl("Service id %d but WMI ext2 service bitmap is NULL",
+			   service_id);
 		return false;
 	}
 	/* if wmi_service_enabled was received with extended bitmap,