Kaynağa Gözat

qcacmn: Fix compile error when enable NAPI_DEBUG

Fix compile error and refine NAPI log when DEBUG option is enabled

Change-Id: Ia2bb8235f92bf4ef2d381deccec707749dbab54d
CRs-Fixed: 2389541
Kai Liu 6 yıl önce
ebeveyn
işleme
205e8d0726
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      hif/src/hif_irq_affinity.c

+ 1 - 3
hif/src/hif_irq_affinity.c

@@ -252,7 +252,7 @@ static int hncm_exec_migrate_to(struct qca_napi_data *napid, uint8_t ctx_id,
 	int status = 0;
 	int ind;
 
-	NAPI_DEBUG("-->%s(napi_cd=%d, didx=%d)", __func__, napi_ce, didx);
+	NAPI_DEBUG("-->%s(napi_cd=%d, didx=%d)", __func__, ctx_id, didx);
 
 	exec_ctx = hif_exec_get_ctx(&napid->hif_softc->osc, ctx_id);
 	if (exec_ctx == NULL)
@@ -402,8 +402,6 @@ int hif_exec_cpu_migrate(struct qca_napi_data *napid, int cpu, int action)
 				/* find a destination CPU */
 				dind = hncm_dest_cpu(napid, action);
 				if (dind >= 0) {
-					NAPI_DEBUG("Migrating NAPI ce%d to %d",
-						   i, dind);
 					rc = hncm_exec_migrate_to(napid, i,
 								  dind);
 				} else {