From 6abb0f08e50f6a6991e2f1763b0c70172f23ae9b Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Mon, 26 Nov 2018 11:30:01 +0800 Subject: [PATCH] qcacld-3.0: Typecast DMA address properly when printing Change Icdcfcdd10400aa2fad64441aa863087cc1c3766e use %llx to print qdf_dma_addr_t. While qdf_dma_addr_t defined as 'unsigned long', if without definition from kernel header. Typecast DMA address to 'unsigned long long', before using %llx to print DMA address directly. Change-Id: Ic9527b494ac1aa2d47567a7dab5f0786913f4921 CRs-Fixed: 2355624 --- core/dp/htt/htt_rx_ll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dp/htt/htt_rx_ll.c b/core/dp/htt/htt_rx_ll.c index d87b3e7c92b7..2c5214f55520 100644 --- a/core/dp/htt/htt_rx_ll.c +++ b/core/dp/htt/htt_rx_ll.c @@ -1215,13 +1215,14 @@ qdf_nbuf_t htt_rx_hash_list_lookup(struct htt_pdev_t *pdev, } RX_HASH_LOG(qdf_print("rx hash: paddr 0x%llx, netbuf %pK, bucket %d\n", - paddr, netbuf, (int)i)); + (unsigned long long)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 %llx!\n", paddr); + qdf_print("rx hash: no entry found for %llx!\n", + (unsigned long long)paddr); cds_trigger_recovery(QDF_RX_HASH_NO_ENTRY_FOUND); }