From 2a9c2537fc4ef68b23fe9a0a0c0749e4c3419dba Mon Sep 17 00:00:00 2001 From: Asutosh Mohapatra Date: Sat, 22 Jun 2024 14:30:56 +0530 Subject: [PATCH] qcacmn: Fix compilation issues caused by log format specifiers Use proper format specifiers in dp_print_tso_stats, also dp_tx_dump_tx_desc type cast variable as per format specified to fix compilation issues. Change-Id: Ic901144b15fb3a163eed6ad29400d0e3e668b4c6 CRs-Fixed: 3849167 --- dp/wifi3.0/dp_stats.c | 4 ++-- dp/wifi3.0/dp_tx.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_stats.c b/dp/wifi3.0/dp_stats.c index 10a36404e3..8437f3c5d6 100644 --- a/dp/wifi3.0/dp_stats.c +++ b/dp/wifi3.0/dp_stats.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -8560,7 +8560,7 @@ void dp_print_tso_stats(struct dp_soc *soc, pdev = soc->pdev_list[loop_pdev]; DP_PRINT_STATS("TSO Statistics\n"); DP_PRINT_STATS( - "From stack: %d | Successful completions: %d | TSO Packets: %d | TSO Completions: %d", + "From stack: %llu | Successful completions: %llu | TSO Packets: %llu | TSO Completions: %d", pdev->stats.tx_i.rcvd.num, pdev->stats.tx.tx_success.num, pdev->stats.tso_stats.num_tso_pkts.num, diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index d459ebe5f5..275f1ef8a7 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -6538,7 +6538,7 @@ void dp_tx_dump_tx_desc(struct dp_tx_desc_s *tx_desc) dp_tx_comp_warn("tx_desc->flags: 0x%x", tx_desc->flags); dp_tx_comp_warn("tx_desc->id: %u", tx_desc->id); dp_tx_comp_warn("tx_desc->dma_addr: 0x%x", - tx_desc->dma_addr); + (unsigned int)tx_desc->dma_addr); dp_tx_comp_warn("tx_desc->vdev_id: %u", tx_desc->vdev_id); dp_tx_comp_warn("tx_desc->tx_status: %u",