Browse Source

qcacmn: Fix format build error

This change fixes build errors with compiler option
-Werror=format=.

Change-Id: I98b93f776c7d58a12d93e1be3a6acf34486ddfab
CRs-Fixed: 2344756
jiad 6 years ago
parent
commit
4320219982
3 changed files with 8 additions and 6 deletions
  1. 2 2
      dp/wifi3.0/dp_rx_defrag.c
  2. 3 2
      dp/wifi3.0/dp_rx_mon_dest.c
  3. 3 2
      hif/src/pcie/if_pci.c

+ 2 - 2
dp/wifi3.0/dp_rx_defrag.c

@@ -736,8 +736,8 @@ static QDF_STATUS dp_rx_defrag_tkip_demic(const uint8_t *key,
 		pktlen += (qdf_nbuf_len(next) - hdrlen);
 		prev = next;
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO,
-			  "%s pktlen %ld", __func__,
-				qdf_nbuf_len(next) - hdrlen);
+			  "%s pktlen %u", __func__,
+			  (uint32_t)(qdf_nbuf_len(next) - hdrlen));
 		next = qdf_nbuf_next(next);
 	}
 

+ 3 - 2
dp/wifi3.0/dp_rx_mon_dest.c

@@ -444,10 +444,11 @@ dp_rx_mon_mpdu_pop(struct dp_soc *soc, uint32_t mac_id,
 #endif
 			QDF_TRACE(QDF_MODULE_ID_DP,
 					  QDF_TRACE_LEVEL_DEBUG,
-					  "%s: rx_pkt_offset=%d, l2_hdr_offset=%d, msdu_len=%d, addr=%pK skb->len %lu",
+					  "%s: rx_pkt_offset=%d, l2_hdr_offset=%d, msdu_len=%d, addr=%pK skb->len %u",
 					  __func__, rx_pkt_offset, l2_hdr_offset,
 					  msdu_list.msdu_info[i].msdu_len,
-					  qdf_nbuf_data(msdu), qdf_nbuf_len(msdu));
+					  qdf_nbuf_data(msdu),
+					  (uint32_t)qdf_nbuf_len(msdu));
 
 			if (head_msdu && *head_msdu == NULL) {
 				*head_msdu = msdu;

+ 3 - 2
hif/src/pcie/if_pci.c

@@ -4376,8 +4376,9 @@ int hif_pci_addr_in_boundary(struct hif_softc *scn, uint32_t offset)
 		return 0;
 	}
 
-	HIF_TRACE("Refusing to read memory at 0x%x - 0x%lx (max 0x%zx)\n",
-		 offset, offset + sizeof(unsigned int), sc->mem_len);
+	HIF_TRACE("Refusing to read memory at 0x%x - 0x%x (max 0x%zx)\n",
+		  offset, (uint32_t)(offset + sizeof(unsigned int)),
+		  sc->mem_len);
 
 	return -EINVAL;
 }