From 2f3f538531e42bd568ce588d15577f4c7156f4db Mon Sep 17 00:00:00 2001 From: Aditya Sathish Date: Mon, 18 Feb 2019 09:51:35 +0530 Subject: [PATCH] qcacmn: Fix compilation warnings caused by dp tx debug print Fix compilation warnings caused by dp tx debug print due to an incorrect specifier being used for the mentioned variable. "%d" was used instead of "%lu" for printing the output of the sizeof operator. Change-Id: I051a3acbb95148fa2d9fbd6db5b4ec7a6144dd99 CRs-Fixed: 2400276 --- dp/wifi3.0/dp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index fff60ae1afe8..17ca749e0b65 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -2611,7 +2611,7 @@ void dp_tx_comp_fill_tx_completion_stats(struct dp_tx_desc_s *tx_desc, } if (qdf_nbuf_push_head(netbuf, sizeof(struct meta_hdr_s)) == NULL) { QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, - "netbuf %pK offset %d", netbuf, + "netbuf %pK offset %lu", netbuf, sizeof(struct meta_hdr_s)); return; }