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

Masanari Iida posted 1 patch 2 years, 8 months ago
drivers/atm/iphase.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] atm: iphase: Fix a typo in printk message.
Posted by Masanari Iida 2 years, 8 months ago
This patch fixes a spelling typo in printk message.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 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
Re: [PATCH] atm: iphase: Fix a typo in printk message.
Posted by Pavan Chebbi 2 years, 8 months ago
On Fri, Dec 23, 2022 at 1:11 PM Masanari Iida <standby24x7@gmail.com> wrote:
>
> This patch fixes a spelling typo in printk message.
>
> Signed-off-by: Masanari Iida <standby24x7@gmail.com>
> ---
>  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
>