Parcourir la source

qcacmn: Suppress NBUF alloc fail prints

NBUF alloc fail prints are flooding the console,
which is not allowing watchdog resetting to occur

ratelimit is added to reduce the print statements
flooding the console.

Change-Id: Ib6531070c8b80d64ffea62209912e5166e0414c1
Sandhya Mahadevan il y a 6 ans
Parent
commit
e650d1d287
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      qdf/linux/src/qdf_nbuf.c

+ 2 - 2
qdf/linux/src/qdf_nbuf.c

@@ -375,8 +375,8 @@ realloc:
 	skb = pld_nbuf_pre_alloc(size);
 
 	if (!skb) {
-		qdf_nofl_err("NBUF alloc failed %zuB @ %s:%d",
-			     size, func, line);
+		qdf_rl_nofl_err("NBUF alloc failed %zuB @ %s:%d",
+				size, func, line);
 		return NULL;
 	}