Browse 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 6 năm trước cách đây
mục cha
commit
e650d1d287
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
 	}