Browse Source

qcacld-3.0: Fix format error when printing DMA address

Compiler threw error as -Werror=int-to-pointer-cast when casting
DMA address to void pointer.
Use %llx to print DMA address directly.

Change-Id: Icdcfcdd10400aa2fad64441aa863087cc1c3766e
CRs-Fixed: 2350605
Lin Bai 6 years ago
parent
commit
e8ce5c5744
1 changed files with 2 additions and 3 deletions
  1. 2 3
      core/dp/htt/htt_rx_ll.c

+ 2 - 3
core/dp/htt/htt_rx_ll.c

@@ -1214,15 +1214,14 @@ qdf_nbuf_t htt_rx_hash_list_lookup(struct htt_pdev_t *pdev,
 		}
 	}
 
-	RX_HASH_LOG(qdf_print("rx hash: paddr 0x%x, netbuf %pK, bucket %d\n",
+	RX_HASH_LOG(qdf_print("rx hash: paddr 0x%llx, netbuf %pK, bucket %d\n",
 			      paddr, netbuf, (int)i));
 	HTT_RX_HASH_COUNT_PRINT(pdev->rx_ring.hash_table[i]);
 
 	qdf_spin_unlock_bh(&pdev->rx_ring.rx_hash_lock);
 
 	if (!netbuf) {
-		qdf_print("rx hash: no entry found for %pK!\n",
-			  (void *)paddr);
+		qdf_print("rx hash: no entry found for %llx!\n", paddr);
 		cds_trigger_recovery(QDF_RX_HASH_NO_ENTRY_FOUND);
 	}