summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeyur Patel2019-02-17 17:25:45 +0100
committerKalle Valo2019-02-19 16:17:13 +0100
commit25f87d8b63b8f2cfe21e7c59a5e90b6e0ba595f0 (patch)
treea780ce978759e28881cf436b7ad6cd3443121e77
parentmwifiex: don't advertise IBSS features without FW support (diff)
downloadkernel-qcow2-linux-25f87d8b63b8f2cfe21e7c59a5e90b6e0ba595f0.tar.gz
kernel-qcow2-linux-25f87d8b63b8f2cfe21e7c59a5e90b6e0ba595f0.tar.xz
kernel-qcow2-linux-25f87d8b63b8f2cfe21e7c59a5e90b6e0ba595f0.zip
orinoco : Replace function name in string with __func__
Replace hard coded function name with __func__, to improve robustness and to conform to the Linux kernel coding style. Issue found using checkpatch. Signed-off-by: Keyur Patel <iamkeyur96@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r--drivers/net/wireless/intersil/orinoco/mic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/intersil/orinoco/mic.c b/drivers/net/wireless/intersil/orinoco/mic.c
index 709d9ab3e7bc..67b0c05afbdb 100644
--- a/drivers/net/wireless/intersil/orinoco/mic.c
+++ b/drivers/net/wireless/intersil/orinoco/mic.c
@@ -18,16 +18,16 @@ int orinoco_mic_init(struct orinoco_private *priv)
{
priv->tx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
if (IS_ERR(priv->tx_tfm_mic)) {
- printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
- "crypto API michael_mic\n");
+ printk(KERN_DEBUG "%s: could not allocate "
+ "crypto API michael_mic\n", __func__);
priv->tx_tfm_mic = NULL;
return -ENOMEM;
}
priv->rx_tfm_mic = crypto_alloc_shash("michael_mic", 0, 0);
if (IS_ERR(priv->rx_tfm_mic)) {
- printk(KERN_DEBUG "orinoco_mic_init: could not allocate "
- "crypto API michael_mic\n");
+ printk(KERN_DEBUG "%s: could not allocate "
+ "crypto API michael_mic\n", __func__);
priv->rx_tfm_mic = NULL;
return -ENOMEM;
}
@@ -52,7 +52,7 @@ int orinoco_mic(struct crypto_shash *tfm_michael, u8 *key,
int err;
if (tfm_michael == NULL) {
- printk(KERN_WARNING "orinoco_mic: tfm_michael == NULL\n");
+ printk(KERN_WARNING "%s: tfm_michael == NULL\n", __func__);
return -1;
}