mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
msm: ipa3: Rate limit excessive logging
Rate limiting excessive logs when modem is in limited service. Signed-off-by: sivakanth vaka <svaka@codeaurora.org>
This commit is contained in:
parent
f53c2a8a7a
commit
3049e6f03e
1 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/completion.h>
|
||||
|
|
@ -30,6 +30,9 @@
|
|||
pr_debug(TETH_BRIDGE_DRV_NAME " %s:%d EXIT\n", __func__, __LINE__)
|
||||
#define TETH_ERR(fmt, args...) \
|
||||
pr_err(TETH_BRIDGE_DRV_NAME " %s:%d " fmt, __func__, __LINE__, ## args)
|
||||
#define TETH_ERR_RL(fmt, args...) \
|
||||
pr_err_ratelimited_ipa(TETH_BRIDGE_DRV_NAME " %s:%d " fmt, __func__, \
|
||||
__LINE__, ## args);
|
||||
|
||||
/**
|
||||
* struct ipa3_teth_bridge_ctx - Tethering bridge driver context information
|
||||
|
|
@ -65,12 +68,12 @@ static void teth_bridge_ipa_cb(void *priv, enum ipa_dp_evt_type evt,
|
|||
|
||||
TETH_DBG_FUNC_ENTRY();
|
||||
if (evt != IPA_RECEIVE) {
|
||||
TETH_ERR("unexpected event %d\n", evt);
|
||||
TETH_ERR_RL("unexpected event %d\n", evt);
|
||||
WARN_ON(1);
|
||||
return;
|
||||
}
|
||||
|
||||
TETH_ERR("Unexpected exception packet from USB, dropping packet\n");
|
||||
TETH_ERR_RL("Unexpected exception packet from USB, dropping packet\n");
|
||||
dev_kfree_skb_any(skb);
|
||||
TETH_DBG_FUNC_EXIT();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue