Переглянути джерело

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,