Skip to contentSkip to conversation

Fix misc spelling errors found by lintian

PATCH Superseded Loïc Minier 4 participants 7 messages Feb 3, 2011 – Apr 12, 2011

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

PATCH 1/1 Fix misc spelling errors found by lintian

---
 arch/arm/cpu/arm920t/at91rm9200/ether.c |    2 +-
 arch/sparc/cpu/leon2/cpu_init.c         |    4 ++--
 arch/sparc/cpu/leon3/cpu_init.c         |    4 ++--
 common/cmd_usb.c                        |    2 +-
 common/usb_storage.c                    |    2 +-
 drivers/net/at91_emac.c                 |    2 +-
 fs/jffs2/jffs2_1pass.c                  |    2 +-
 fs/jffs2/jffs2_nand_1pass.c             |    2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/cpu/arm920t/at91rm9200/ether.c +1 -1
index e1cdeba..d7135c5 100644
@@ -39,7 +39,7 @@ typedef struct {
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
arch/sparc/cpu/leon2/cpu_init.c +2 -2
index a24f778..795c7d7 100644
@@ -47,9 +47,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
arch/sparc/cpu/leon3/cpu_init.c +2 -2
index be22ec2..cba9d0e 100644
@@ -57,9 +57,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
common/cmd_usb.c +1 -1
index b04a8df..7fcc61a 100644
@@ -580,7 +580,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 					break;
 			}
 			if (dev == NULL) {
-				printf("*** NO Device avaiable ***\n");
+				printf("*** NO Device available ***\n");
 				return 0;
 			} else {
 				usb_display_desc(dev);
common/usb_storage.c +1 -1
index 1e6cd6a..de48c5a 100644
@@ -254,7 +254,7 @@ int usb_stor_scan(int mode)
 		dev = usb_get_dev_index(i); /* get device */
 		USB_STOR_PRINTF("i=%d\n", i);
 		if (dev == NULL)
-			break; /* no more devices avaiable */
+			break; /* no more devices available */
 
 		if (usb_storage_probe(dev, 0, &usb_stor[usb_max_devs])) {
 			/* OK, it's a storage device.  Iterate over its LUNs
drivers/net/at91_emac.c +1 -1
index 4e5685c..90eb515 100644
@@ -93,7 +93,7 @@
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
fs/jffs2/jffs2_1pass.c +1 -1
index c4f7445..5ddc2b9 100644
@@ -794,7 +794,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
 #endif
 				default:
 					/* unknown */
-					putLabeledWord("UNKOWN COMPRESSION METHOD = ", jNode->compr);
+					putLabeledWord("UNKNOWN COMPRESSION METHOD = ", jNode->compr);
 					put_fl_mem(jNode, pL->readbuf);
 					return -1;
 					break;
fs/jffs2/jffs2_nand_1pass.c +1 -1
index 3982003..740f787 100644
@@ -350,7 +350,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
 #endif
 			default:
 				/* unknown */
-				putLabeledWord("UNKOWN COMPRESSION METHOD = ", inode->compr);
+				putLabeledWord("UNKNOWN COMPRESSION METHOD = ", inode->compr);
 				return -1;
 			}
 		}
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH v2 1/1 Fix misc spelling errors found by lintian

---
Changes for V2:
* add Signed-off-by

 arch/arm/cpu/arm920t/at91rm9200/ether.c |    2 +-
 arch/sparc/cpu/leon2/cpu_init.c         |    4 ++--
 arch/sparc/cpu/leon3/cpu_init.c         |    4 ++--
 common/cmd_usb.c                        |    2 +-
 common/usb_storage.c                    |    2 +-
 drivers/net/at91_emac.c                 |    2 +-
 fs/jffs2/jffs2_1pass.c                  |    2 +-
 fs/jffs2/jffs2_nand_1pass.c             |    2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/cpu/arm920t/at91rm9200/ether.c +1 -1
index e1cdeba..d7135c5 100644
@@ -39,7 +39,7 @@ typedef struct {
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
arch/sparc/cpu/leon2/cpu_init.c +2 -2
index a24f778..795c7d7 100644
@@ -47,9 +47,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
arch/sparc/cpu/leon3/cpu_init.c +2 -2
index be22ec2..cba9d0e 100644
@@ -57,9 +57,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
common/cmd_usb.c +1 -1
index b04a8df..7fcc61a 100644
@@ -580,7 +580,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 					break;
 			}
 			if (dev == NULL) {
-				printf("*** NO Device avaiable ***\n");
+				printf("*** NO Device available ***\n");
 				return 0;
 			} else {
 				usb_display_desc(dev);
common/usb_storage.c +1 -1
index 1e6cd6a..de48c5a 100644
@@ -254,7 +254,7 @@ int usb_stor_scan(int mode)
 		dev = usb_get_dev_index(i); /* get device */
 		USB_STOR_PRINTF("i=%d\n", i);
 		if (dev == NULL)
-			break; /* no more devices avaiable */
+			break; /* no more devices available */
 
 		if (usb_storage_probe(dev, 0, &usb_stor[usb_max_devs])) {
 			/* OK, it's a storage device.  Iterate over its LUNs
drivers/net/at91_emac.c +1 -1
index 4e5685c..90eb515 100644
@@ -93,7 +93,7 @@
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
fs/jffs2/jffs2_1pass.c +1 -1
index c4f7445..5ddc2b9 100644
@@ -794,7 +794,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
 #endif
 				default:
 					/* unknown */
-					putLabeledWord("UNKOWN COMPRESSION METHOD = ", jNode->compr);
+					putLabeledWord("UNKNOWN COMPRESSION METHOD = ", jNode->compr);
 					put_fl_mem(jNode, pL->readbuf);
 					return -1;
 					break;
fs/jffs2/jffs2_nand_1pass.c +1 -1
index 3982003..740f787 100644
@@ -350,7 +350,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
 #endif
 			default:
 				/* unknown */
-				putLabeledWord("UNKOWN COMPRESSION METHOD = ", inode->compr);
+				putLabeledWord("UNKNOWN COMPRESSION METHOD = ", inode->compr);
 				return -1;
 			}
 		}
Signature · 1 line
1.7.2.3
#2 lore raw

PATCH v2 1/1 Fix misc spelling errors found by lintian

Loic wrote...

<snip>

common/cmd_usb.c int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, · line 584

Quoted 11 lines
common/cmd_usb.c +1 -1
index b04a8df..7fcc61a 100644
@@ -580,7 +580,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc,
 char * const argv[])
 					break;
 			}
 			if (dev == NULL) {
-				printf("*** NO Device avaiable ***\n");
+				printf("*** NO Device available ***\n");

Should this be further amended to be all upper case or all words starting with an upper case character rather than the current random looking collection?

<snip>

Andy.

#3 lore raw

PATCH v2 1/1 Fix misc spelling errors found by lintian

Quoted 3 lines · Andy Pont

Should this be further amended to be all upper case or all words starting with an upper case character rather than the current random looking collection?

I wasn't sure whether it was extra emphasis on "NO", and there was no other similarly looking message in the file (with ***) so I didn't change the casing.

Signature · 1 line
Lo?c Minier
#4 lore raw

PATCH v2 1/1 Fix misc spelling errors found by lintian

In reply to Andy Pont

Dear "Andy Pont",

Quoted 5 lines · In message <012501cbc3ae$ae525bf0$0af713d0$@[email protected]> you wrote:

common/cmd_usb.c int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) · line 583

Quoted 3 lines
common/cmd_usb.c +1 -1
-				printf("*** NO Device avaiable ***\n");
+				printf("*** NO Device available ***\n");

Should this be further amended to be all upper case or all words starting with an upper case character rather than the current random looking collection?

If you feel it's worth the effort, please feel free to rewrite as "No device available".

Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
America has been discovered before, but it has always been hushed up.
- Oscar Wilde
#5 lore raw

PATCH v3 1/1 Fix misc spelling errors found by lintian

In reply to Loïc Minier

---
Changes for V3:
* tweak casing of string in common/cmd_usb.c to "No device available"

Changes for V2:
* add Signed-off-by

 arch/arm/cpu/arm920t/at91rm9200/ether.c |    2 +-
 arch/sparc/cpu/leon2/cpu_init.c         |    4 ++--
 arch/sparc/cpu/leon3/cpu_init.c         |    4 ++--
 common/cmd_usb.c                        |    2 +-
 common/usb_storage.c                    |    2 +-
 drivers/net/at91_emac.c                 |    2 +-
 fs/jffs2/jffs2_1pass.c                  |    2 +-
 fs/jffs2/jffs2_nand_1pass.c             |    2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/cpu/arm920t/at91rm9200/ether.c +1 -1
index e1cdeba..d7135c5 100644
@@ -39,7 +39,7 @@ typedef struct {
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
arch/sparc/cpu/leon2/cpu_init.c +2 -2
index a24f778..795c7d7 100644
@@ -47,9 +47,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
arch/sparc/cpu/leon3/cpu_init.c +2 -2
index be22ec2..cba9d0e 100644
@@ -57,9 +57,9 @@ struct {
  * initialize a bunch of registers.
  *
  * Run from FLASH/PROM:
- *  - until memory controller is set up, only registers avaiable
+ *  - until memory controller is set up, only registers available
  *  - no global variables available for writing
- *  - constants avaiable
+ *  - constants available
  */
 
 void cpu_init_f(void)
common/cmd_usb.c +1 -1
index b04a8df..ced818a 100644
@@ -580,7 +580,7 @@ int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 					break;
 			}
 			if (dev == NULL) {
-				printf("*** NO Device avaiable ***\n");
+				printf("*** No device available ***\n");
 				return 0;
 			} else {
 				usb_display_desc(dev);
common/usb_storage.c +1 -1
index 1e6cd6a..de48c5a 100644
@@ -254,7 +254,7 @@ int usb_stor_scan(int mode)
 		dev = usb_get_dev_index(i); /* get device */
 		USB_STOR_PRINTF("i=%d\n", i);
 		if (dev == NULL)
-			break; /* no more devices avaiable */
+			break; /* no more devices available */
 
 		if (usb_storage_probe(dev, 0, &usb_stor[usb_max_devs])) {
 			/* OK, it's a storage device.  Iterate over its LUNs
drivers/net/at91_emac.c +1 -1
index 4e5685c..90eb515 100644
@@ -93,7 +93,7 @@
 #define RBF_MULTICAST (1<<30)
 #define RBF_UNICAST   (1<<29)
 #define RBF_EXTERNAL  (1<<28)
-#define RBF_UNKOWN    (1<<27)
+#define RBF_UNKNOWN   (1<<27)
 #define RBF_SIZE      0x07ff
 #define RBF_LOCAL4    (1<<26)
 #define RBF_LOCAL3    (1<<25)
fs/jffs2/jffs2_1pass.c +1 -1
index c4f7445..5ddc2b9 100644
@@ -794,7 +794,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 inode, char *dest)
 #endif
 				default:
 					/* unknown */
-					putLabeledWord("UNKOWN COMPRESSION METHOD = ", jNode->compr);
+					putLabeledWord("UNKNOWN COMPRESSION METHOD = ", jNode->compr);
 					put_fl_mem(jNode, pL->readbuf);
 					return -1;
 					break;
fs/jffs2/jffs2_nand_1pass.c +1 -1
index 3982003..740f787 100644
@@ -350,7 +350,7 @@ jffs2_1pass_read_inode(struct b_lists *pL, u32 ino, char *dest,
 #endif
 			default:
 				/* unknown */
-				putLabeledWord("UNKOWN COMPRESSION METHOD = ", inode->compr);
+				putLabeledWord("UNKNOWN COMPRESSION METHOD = ", inode->compr);
 				return -1;
 			}
 		}
Signature · 1 line
1.7.2.3
#6 lore raw

PATCH v3 1/1 Fix misc spelling errors found by lintian

Dear =?UTF-8?q?Lo=C3=AFc=20Minier?=,

Quoted 8 lines · In message <[email protected]> you wrote:

---
Changes for V3:
* tweak casing of string in common/cmd_usb.c to "No device available"

Changes for V2:
* add Signed-off-by

Quoted 9 lines
 arch/arm/cpu/arm920t/at91rm9200/ether.c |    2 +-
 arch/sparc/cpu/leon2/cpu_init.c         |    4 ++--
 arch/sparc/cpu/leon3/cpu_init.c         |    4 ++--
 common/cmd_usb.c                        |    2 +-
 common/usb_storage.c                    |    2 +-
 drivers/net/at91_emac.c                 |    2 +-
 fs/jffs2/jffs2_1pass.c                  |    2 +-
 fs/jffs2/jffs2_nand_1pass.c             |    2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A penny saved is a penny to squander.
- Ambrose Bierce