Ver código fonte

qcacmn: print vdev id in failure case

Currently only peer mac address is logged if
failed to find peer, there is no log for vdev id.
If caller has passed wrong vdev_id from current
error print one can not identify the issue.

So to fix the issue add vdev id to error log
to check if vdev_id was passed correctly.

CRs-Fixed: 3616476
Change-Id: I3c500784e744f37dd8a1a2a7b84c7b94baf13149
Amit Mehta 1 ano atrás
pai
commit
34d88f5bfc
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      dp/wifi3.0/dp_peer.h

+ 2 - 2
dp/wifi3.0/dp_peer.h

@@ -1981,8 +1981,8 @@ struct dp_peer *dp_peer_get_tgt_peer_hash_find(struct dp_soc *soc,
 			ta_peer = peer;
 		}
 	} else {
-		dp_peer_err("fail to find peer:" QDF_MAC_ADDR_FMT,
-			    QDF_MAC_ADDR_REF(peer_mac));
+		dp_peer_err("fail to find peer:" QDF_MAC_ADDR_FMT " vdev_id: %u",
+			    QDF_MAC_ADDR_REF(peer_mac), vdev_id);
 	}
 
 	return ta_peer;