Skip to contentSkip to conversation

atm: iphase: Fix a typo in printk message.

PATCH In review Masanari Iida 2 participants 2 messages Dec 23, 2022 – Dec 25, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atm: iphase: Fix a typo in printk message.

This patch fixes a spelling typo in printk message.

---
 drivers/atm/iphase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atm/iphase.c +1 -1
index 324148686953..aea5fc4c206e 100644
@@ -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
Signature · 1 line
2.38.1
#1 lore raw
Quoted 13 lines · Masanari Iida

This patch fixes a spelling typo in printk message.

---
 drivers/atm/iphase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atm/iphase.c +0 -0
index 324148686953..aea5fc4c206e 100644

drivers/atm/iphase.c static int ia_cbr_setup (IADEV *dev, struct atm_vcc *vcc) { · line 553

Quoted 6 lines
drivers/atm/iphase.c +1 -1
@@ -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.

Quoted 5 lines
drivers/atm/iphase.c +0 -1
           }
           // set table index and read in value
--

2.38.1