qcacmn: fix print format compilation errors
Fix print format compilation errors and remove no-format compilation flag Change-Id: I69cd0c2eedaa4f2b4189275bf639f48a2fa6b80b
This commit is contained in:

committed by
snandini

parent
4fb0c8fccb
commit
3ab152450d
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -3285,7 +3285,7 @@ dp_process_ppdu_stats_tx_mgmtctrl_payload_tlv(struct dp_pdev *pdev,
|
|||||||
if (pdev->tx_capture_enabled) {
|
if (pdev->tx_capture_enabled) {
|
||||||
head_size = sizeof(struct cdp_tx_mgmt_comp_info);
|
head_size = sizeof(struct cdp_tx_mgmt_comp_info);
|
||||||
if (qdf_unlikely(qdf_nbuf_headroom(tag_buf) < head_size)) {
|
if (qdf_unlikely(qdf_nbuf_headroom(tag_buf) < head_size)) {
|
||||||
qdf_err("Fail to get headroom h_sz %d h_avail %d\n",
|
qdf_err("Fail to get headroom h_sz %zu h_avail %d\n",
|
||||||
head_size, qdf_nbuf_headroom(tag_buf));
|
head_size, qdf_nbuf_headroom(tag_buf));
|
||||||
qdf_assert_always(0);
|
qdf_assert_always(0);
|
||||||
return QDF_STATUS_E_NOMEM;
|
return QDF_STATUS_E_NOMEM;
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -386,7 +386,7 @@ static QDF_STATUS dp_mon_filter_check_co_exist(struct dp_pdev *pdev)
|
|||||||
if (pdev->mcopy_mode &&
|
if (pdev->mcopy_mode &&
|
||||||
(pdev->monitor_vdev || pdev->neighbour_peers_added)) {
|
(pdev->monitor_vdev || pdev->neighbour_peers_added)) {
|
||||||
dp_mon_filter_err("%pK: mcopy mode can't exist with modes\n"
|
dp_mon_filter_err("%pK: mcopy mode can't exist with modes\n"
|
||||||
"Monitor Mode:%d\n"
|
"Monitor Mode:%pK\n"
|
||||||
"Smart Monitor Mode:%d",
|
"Smart Monitor Mode:%d",
|
||||||
pdev->soc, pdev->monitor_vdev,
|
pdev->soc, pdev->monitor_vdev,
|
||||||
pdev->neighbour_peers_added);
|
pdev->neighbour_peers_added);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -3714,7 +3714,7 @@ QDF_STATUS dp_peer_ext_stats_ctx_alloc(struct dp_soc *soc,
|
|||||||
uint8_t tid, ctx_id;
|
uint8_t tid, ctx_id;
|
||||||
|
|
||||||
if (!soc || !peer) {
|
if (!soc || !peer) {
|
||||||
dp_warn("Null soc%x or peer%x", soc, peer);
|
dp_warn("Null soc%pK or peer%pK", soc, peer);
|
||||||
return QDF_STATUS_E_INVAL;
|
return QDF_STATUS_E_INVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1233,7 +1233,7 @@ void dp_rx_mon_update_pf_tag_to_buf_headroom(struct dp_soc *soc,
|
|||||||
|
|
||||||
/* Headroom must be double of PF_TAG_SIZE as we copy it 1stly to head */
|
/* Headroom must be double of PF_TAG_SIZE as we copy it 1stly to head */
|
||||||
if (qdf_unlikely(qdf_nbuf_headroom(nbuf) < (DP_RX_MON_TOT_PF_TAG_LEN * 2))) {
|
if (qdf_unlikely(qdf_nbuf_headroom(nbuf) < (DP_RX_MON_TOT_PF_TAG_LEN * 2))) {
|
||||||
dp_err("Nbuf avail Headroom[%d] < 2 * DP_RX_MON_PF_TAG_TOT_LEN[%d]",
|
dp_err("Nbuf avail Headroom[%d] < 2 * DP_RX_MON_PF_TAG_TOT_LEN[%lu]",
|
||||||
qdf_nbuf_headroom(nbuf), DP_RX_MON_TOT_PF_TAG_LEN);
|
qdf_nbuf_headroom(nbuf), DP_RX_MON_TOT_PF_TAG_LEN);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1247,7 +1247,7 @@ void dp_rx_mon_update_pf_tag_to_buf_headroom(struct dp_soc *soc,
|
|||||||
while (ext_list) {
|
while (ext_list) {
|
||||||
/* Headroom must be double of PF_TAG_SIZE as we copy it 1stly to head */
|
/* Headroom must be double of PF_TAG_SIZE as we copy it 1stly to head */
|
||||||
if (qdf_unlikely(qdf_nbuf_headroom(ext_list) < (DP_RX_MON_TOT_PF_TAG_LEN * 2))) {
|
if (qdf_unlikely(qdf_nbuf_headroom(ext_list) < (DP_RX_MON_TOT_PF_TAG_LEN * 2))) {
|
||||||
dp_err("Fraglist Nbuf avail Headroom[%d] < 2 * DP_RX_MON_PF_TAG_TOT_LEN[%d]",
|
dp_err("Fraglist Nbuf avail Headroom[%d] < 2 * DP_RX_MON_PF_TAG_TOT_LEN[%lu]",
|
||||||
qdf_nbuf_headroom(ext_list), DP_RX_MON_TOT_PF_TAG_LEN);
|
qdf_nbuf_headroom(ext_list), DP_RX_MON_TOT_PF_TAG_LEN);
|
||||||
ext_list = qdf_nbuf_queue_next(ext_list);
|
ext_list = qdf_nbuf_queue_next(ext_list);
|
||||||
continue;
|
continue;
|
||||||
|
@@ -897,8 +897,7 @@ dp_rx_mcopy_handle_last_mpdu(struct dp_soc *soc, struct dp_pdev *pdev,
|
|||||||
if (!nbuf_clone) {
|
if (!nbuf_clone) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_TXRX,
|
QDF_TRACE(QDF_MODULE_ID_TXRX,
|
||||||
QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE_LEVEL_ERROR,
|
||||||
"Failed to clone nbuf",
|
"Failed to clone nbuf");
|
||||||
__func__, __LINE__);
|
|
||||||
goto end1;
|
goto end1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1025,8 +1024,7 @@ dp_rx_process_mcopy_mode(struct dp_soc *soc, struct dp_pdev *pdev,
|
|||||||
nbuf_clone = qdf_nbuf_clone(status_nbuf);
|
nbuf_clone = qdf_nbuf_clone(status_nbuf);
|
||||||
if (!nbuf_clone) {
|
if (!nbuf_clone) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
||||||
"Failed to clone nbuf",
|
"Failed to clone nbuf");
|
||||||
__func__, __LINE__);
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -3362,7 +3362,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) {
|
if (qdf_nbuf_push_head(netbuf, sizeof(struct meta_hdr_s)) == NULL) {
|
||||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
||||||
"netbuf %pK offset %lu", netbuf,
|
"netbuf %pK offset %zu", netbuf,
|
||||||
sizeof(struct meta_hdr_s));
|
sizeof(struct meta_hdr_s));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user