nfc: Remove function tracer like entry messages
Logging messages that mimic function tracer enter/exit aren't necessary. Just remove them. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
538af1344a
commit
24bf330485
@@ -325,8 +325,6 @@ static void nci_cmd_timer(unsigned long arg)
|
||||
{
|
||||
struct nci_dev *ndev = (void *) arg;
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
atomic_set(&ndev->cmd_cnt, 1);
|
||||
queue_work(ndev->cmd_wq, &ndev->cmd_work);
|
||||
}
|
||||
@@ -335,8 +333,6 @@ static int nci_dev_up(struct nfc_dev *nfc_dev)
|
||||
{
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
return nci_open_device(ndev);
|
||||
}
|
||||
|
||||
@@ -344,8 +340,6 @@ static int nci_dev_down(struct nfc_dev *nfc_dev)
|
||||
{
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
return nci_close_device(ndev);
|
||||
}
|
||||
|
||||
@@ -354,8 +348,6 @@ static int nci_start_poll(struct nfc_dev *nfc_dev, __u32 protocols)
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
int rc;
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
if (test_bit(NCI_DISCOVERY, &ndev->flags)) {
|
||||
pr_err("unable to start poll, since poll is already active\n");
|
||||
return -EBUSY;
|
||||
@@ -388,8 +380,6 @@ static void nci_stop_poll(struct nfc_dev *nfc_dev)
|
||||
{
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
if (!test_bit(NCI_DISCOVERY, &ndev->flags)) {
|
||||
pr_err("unable to stop poll, since poll is not active\n");
|
||||
return;
|
||||
@@ -404,7 +394,7 @@ static int nci_activate_target(struct nfc_dev *nfc_dev, __u32 target_idx,
|
||||
{
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
pr_debug("entry, target_idx %d, protocol 0x%x\n", target_idx, protocol);
|
||||
pr_debug("target_idx %d, protocol 0x%x\n", target_idx, protocol);
|
||||
|
||||
if (!test_bit(NCI_POLL_ACTIVE, &ndev->flags)) {
|
||||
pr_err("there is no available target to activate\n");
|
||||
@@ -432,7 +422,7 @@ static void nci_deactivate_target(struct nfc_dev *nfc_dev, __u32 target_idx)
|
||||
{
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
|
||||
pr_debug("entry, target_idx %d\n", target_idx);
|
||||
pr_debug("target_idx %d\n", target_idx);
|
||||
|
||||
if (!ndev->target_active_prot) {
|
||||
pr_err("unable to deactivate target, no active target\n");
|
||||
@@ -455,7 +445,7 @@ static int nci_data_exchange(struct nfc_dev *nfc_dev, __u32 target_idx,
|
||||
struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
|
||||
int rc;
|
||||
|
||||
pr_debug("entry, target_idx %d, len %d\n", target_idx, skb->len);
|
||||
pr_debug("target_idx %d, len %d\n", target_idx, skb->len);
|
||||
|
||||
if (!ndev->target_active_prot) {
|
||||
pr_err("unable to exchange data, no active target\n");
|
||||
@@ -501,7 +491,7 @@ struct nci_dev *nci_allocate_device(struct nci_ops *ops,
|
||||
{
|
||||
struct nci_dev *ndev;
|
||||
|
||||
pr_debug("entry, supported_protocols 0x%x\n", supported_protocols);
|
||||
pr_debug("supported_protocols 0x%x\n", supported_protocols);
|
||||
|
||||
if (!ops->open || !ops->close || !ops->send)
|
||||
return NULL;
|
||||
@@ -541,8 +531,6 @@ EXPORT_SYMBOL(nci_allocate_device);
|
||||
*/
|
||||
void nci_free_device(struct nci_dev *ndev)
|
||||
{
|
||||
pr_debug("entry\n");
|
||||
|
||||
nfc_free_device(ndev->nfc_dev);
|
||||
kfree(ndev);
|
||||
}
|
||||
@@ -559,8 +547,6 @@ int nci_register_device(struct nci_dev *ndev)
|
||||
struct device *dev = &ndev->nfc_dev->dev;
|
||||
char name[32];
|
||||
|
||||
pr_debug("entry\n");
|
||||
|
||||
rc = nfc_register_device(ndev->nfc_dev);
|
||||
if (rc)
|
||||
goto exit;
|
||||
@@ -623,8 +609,6 @@ EXPORT_SYMBOL(nci_register_device);
|
||||
*/
|
||||
void nci_unregister_device(struct nci_dev *ndev)
|
||||
{
|
||||
pr_debug("entry\n");
|
||||
|
||||
nci_close_device(ndev);
|
||||
|
||||
destroy_workqueue(ndev->cmd_wq);
|
||||
@@ -644,7 +628,7 @@ int nci_recv_frame(struct sk_buff *skb)
|
||||
{
|
||||
struct nci_dev *ndev = (struct nci_dev *) skb->dev;
|
||||
|
||||
pr_debug("entry, len %d\n", skb->len);
|
||||
pr_debug("len %d\n", skb->len);
|
||||
|
||||
if (!ndev || (!test_bit(NCI_UP, &ndev->flags)
|
||||
&& !test_bit(NCI_INIT, &ndev->flags))) {
|
||||
@@ -664,7 +648,7 @@ static int nci_send_frame(struct sk_buff *skb)
|
||||
{
|
||||
struct nci_dev *ndev = (struct nci_dev *) skb->dev;
|
||||
|
||||
pr_debug("entry, len %d\n", skb->len);
|
||||
pr_debug("len %d\n", skb->len);
|
||||
|
||||
if (!ndev) {
|
||||
kfree_skb(skb);
|
||||
@@ -683,7 +667,7 @@ int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload)
|
||||
struct nci_ctrl_hdr *hdr;
|
||||
struct sk_buff *skb;
|
||||
|
||||
pr_debug("entry, opcode 0x%x, plen %d\n", opcode, plen);
|
||||
pr_debug("opcode 0x%x, plen %d\n", opcode, plen);
|
||||
|
||||
skb = nci_skb_alloc(ndev, (NCI_CTRL_HDR_SIZE + plen), GFP_KERNEL);
|
||||
if (!skb) {
|
||||
@@ -717,7 +701,7 @@ static void nci_tx_work(struct work_struct *work)
|
||||
struct nci_dev *ndev = container_of(work, struct nci_dev, tx_work);
|
||||
struct sk_buff *skb;
|
||||
|
||||
pr_debug("entry, credits_cnt %d\n", atomic_read(&ndev->credits_cnt));
|
||||
pr_debug("credits_cnt %d\n", atomic_read(&ndev->credits_cnt));
|
||||
|
||||
/* Send queued tx data */
|
||||
while (atomic_read(&ndev->credits_cnt)) {
|
||||
@@ -776,7 +760,7 @@ static void nci_cmd_work(struct work_struct *work)
|
||||
struct nci_dev *ndev = container_of(work, struct nci_dev, cmd_work);
|
||||
struct sk_buff *skb;
|
||||
|
||||
pr_debug("entry, cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
|
||||
pr_debug("cmd_cnt %d\n", atomic_read(&ndev->cmd_cnt));
|
||||
|
||||
/* Send queued command */
|
||||
if (atomic_read(&ndev->cmd_cnt)) {
|
||||
|
Reference in New Issue
Block a user