2022-12-23 07:58:45

by Masanari Iida

[permalink] [raw]
Subject: [PATCH] atm: iphase: Fix a typo in printk message.

This patch fixes a spelling typo in printk message.

Signed-off-by: Masanari Iida <[email protected]>
---
drivers/atm/iphase.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index 324148686953..aea5fc4c206e 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -549,7 +549,7 @@ static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) {
if (testSlot >= (int)dev->CbrTotEntries) { // Wrap if necessary
testSlot -= dev->CbrTotEntries;
IF_CBR(printk("TotCbrEntries=%d",dev->CbrTotEntries);)
- IF_CBR(printk(" Testslot=0x%x ToBeAssgned=%d\n",
+ IF_CBR(printk(" Testslot=0x%x ToBeAssigned=%d\n",
testSlot, toBeAssigned);)
}
// set table index and read in value
--
2.38.1


2022-12-25 16:53:01

by Pavan Chebbi

[permalink] [raw]
Subject: Re: [PATCH] atm: iphase: Fix a typo in printk message.

On Fri, Dec 23, 2022 at 1:11 PM Masanari Iida <[email protected]> wrote:
>
> This patch fixes a spelling typo in printk message.
>
> Signed-off-by: Masanari Iida <[email protected]>
> ---
> drivers/atm/iphase.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
> index 324148686953..aea5fc4c206e 100644
> --- a/drivers/atm/iphase.c
> +++ b/drivers/atm/iphase.c
> @@ -549,7 +549,7 @@ static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) {
> if (testSlot >= (int)dev->CbrTotEntries) { // Wrap if necessary
> testSlot -= dev->CbrTotEntries;
> IF_CBR(printk("TotCbrEntries=%d",dev->CbrTotEntries);)
> - IF_CBR(printk(" Testslot=0x%x ToBeAssgned=%d\n",
> + IF_CBR(printk(" Testslot=0x%x ToBeAssigned=%d\n",
> testSlot, toBeAssigned);)

I think current checkpatch errors are valid even though the original
code may be violating. You may fix them and also add a fixes tag.

> }
> // set table index and read in value
> --
> 2.38.1
>


Attachments:
smime.p7s (4.11 kB)
S/MIME Cryptographic Signature