Skip to content

Commit 7558bd5

Browse files
author
Stefan Schmidt
committed
ieee802154: ca8210: use __func__ macro for debug messages
Instead of having the function name hard-coded (it might change and we forgot to update them in the debug output) we can use __func__ instead and also shorter the line so we do not need to break it. Found by checkpatch. Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com> Acked-by: Harry Morris <h.morris@cascoda.com> Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
1 parent dc1281e commit 7558bd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ieee802154/ca8210.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ static int ca8210_spi_transfer(
924924
priv = spi_get_drvdata(spi);
925925
reinit_completion(&priv->spi_transfer_complete);
926926

927-
dev_dbg(&spi->dev, "ca8210_spi_transfer called\n");
927+
dev_dbg(&spi->dev, "%s called\n", __func__);
928928

929929
cas_ctl = kmalloc(sizeof(*cas_ctl), GFP_ATOMIC);
930930
if (!cas_ctl)
@@ -1898,7 +1898,7 @@ static int ca8210_net_rx(struct ieee802154_hw *hw, u8 *command, size_t len)
18981898
unsigned long flags;
18991899
u8 status;
19001900

1901-
dev_dbg(&priv->spi->dev, "ca8210_net_rx(), CmdID = %d\n", command[0]);
1901+
dev_dbg(&priv->spi->dev, "%s: CmdID = %d\n", __func__, command[0]);
19021902

19031903
if (command[0] == SPI_MCPS_DATA_INDICATION) {
19041904
/* Received data */
@@ -1948,7 +1948,7 @@ static int ca8210_skb_tx(
19481948
struct secspec secspec;
19491949
unsigned int mac_len;
19501950

1951-
dev_dbg(&priv->spi->dev, "ca8210_skb_tx() called\n");
1951+
dev_dbg(&priv->spi->dev, "%s called\n", __func__);
19521952

19531953
/* Get addressing info from skb - ieee802154 layer creates a full
19541954
* packet
@@ -2051,7 +2051,7 @@ static int ca8210_xmit_async(struct ieee802154_hw *hw, struct sk_buff *skb)
20512051
struct ca8210_priv *priv = hw->priv;
20522052
int status;
20532053

2054-
dev_dbg(&priv->spi->dev, "calling ca8210_xmit_async()\n");
2054+
dev_dbg(&priv->spi->dev, "calling %s\n", __func__);
20552055

20562056
priv->tx_skb = skb;
20572057
priv->async_tx_pending = true;

0 commit comments

Comments
 (0)