Bladeren bron

qcacmn: Avoid excessive logging in ath procfs read/write ops

Currently logs are being flooded during ath procfs read/write
operations. This excessive logging is causing wlan panic.

Fix this by changing log level from hif_info to hif_debug.
Since these logs printed are not required in normal use case
scenario, will be helpful only during debug purpose changed
log level to hif_debug.

Change-Id: If8ad1a8bf5c427e483c675192dcbd9ce42854ece
CRs-Fixed: 3615763
Karthik Kantamneni 1 jaar geleden
bovenliggende
commit
06dfff7c8d
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4 4
      hif/src/ath_procfs.c

+ 4 - 4
hif/src/ath_procfs.c

@@ -499,8 +499,8 @@ static ssize_t ath_procfs_diag_read(struct file *file, char __user *buf,
 	if (offset & 0x3)
 		return -EINVAL;
 
-	hif_info("rd cnt %zu offset 0x%x op_type %d type %d pos %llx",
-		 count, offset, op_type, memtype, *pos);
+	hif_debug("rd cnt %zu offset 0x%x op_type %d type %d pos %llx",
+		  count, offset, op_type, memtype, *pos);
 
 	switch (op_type) {
 	case OP_TYPE_LEGACY:
@@ -541,8 +541,8 @@ static ssize_t ath_procfs_diag_write(struct file *file,
 	if (offset & 0x3)
 		return -EINVAL;
 
-	hif_info("wr cnt %zu offset 0x%x op_type %d mem_type %d",
-		 count, offset, op_type, memtype);
+	hif_debug("wr cnt %zu offset 0x%x op_type %d mem_type %d",
+		  count, offset, op_type, memtype);
 
 	switch (op_type) {
 	case OP_TYPE_LEGACY: