Skip to contentSkip to conversation

dm vdo: Fix spelling mistake "postive" -> "positive"

PATCH In review Colin Ian King 3 participants 4 messages Sep 3

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

PATCH 1/1 dm vdo: Fix spelling mistake "postive" -> "positive"

There is another spelling mistake in a vdo_log_error message that I somehow overlooked last time. Fix it.

---
 drivers/md/dm-vdo/dm-vdo-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/dm-vdo-target.c +1 -1
index 1d8375cc3c3e..043549b1fc2e 100644
@@ -443,7 +443,7 @@ static int __must_check parse_slab_size(const char *slab_str, block_count_t *sla
 
 	result = kstrtoull(slab_str, 10, &value);
 	if (result) {
-		vdo_log_error("optional parameter error: invalid slab size, must be a postive integer");
+		vdo_log_error("optional parameter error: invalid slab size, must be a positive integer");
 		return -EINVAL;
 	}
 
Signature · 1 line
2.55.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

I had to look at this for quite a while to figure out what was going on.
We made the same spelling error twice in the same function and somehow only noticed the first one previously? Anyway,

Quoted 21 lines · Colin Ian King

There is another spelling mistake in a vdo_log_error message that I somehow overlooked last time. Fix it.

---
  drivers/md/dm-vdo/dm-vdo-target.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/dm-vdo-target.c +1 -1
index 1d8375cc3c3e..043549b1fc2e 100644
@@ -443,7 +443,7 @@ static int __must_check parse_slab_size(const char *slab_str, block_count_t *sla
 
  	result = kstrtoull(slab_str, 10, &value);
  	if (result) {
-		vdo_log_error("optional parameter error: invalid slab size, must be a postive integer");
+		vdo_log_error("optional parameter error: invalid slab size, must be a positive integer");
  		return -EINVAL;
  	}
 
#2 lore raw
Quoted 15 lines · Matthew Sakai

I had to look at this for quite a while to figure out what was going on. We made the same spelling error twice in the same function and somehow only noticed the first one previously? Anyway,

Quoted 8 lines · Colin Ian King

There is another spelling mistake in a vdo_log_error message that I somehow overlooked last time. Fix it.

---
  drivers/md/dm-vdo/dm-vdo-target.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 14 lines
drivers/md/dm-vdo/dm-vdo-target.c +1 -1
index 1d8375cc3c3e..043549b1fc2e 100644
@@ -443,7 +443,7 @@ static int __must_check parse_slab_size(const char
 *slab_str, block_count_t *sla
    	result = kstrtoull(slab_str, 10, &value);
  	if (result) {
-		vdo_log_error("optional parameter error: invalid slab size,
 must be a postive integer");
+		vdo_log_error("optional parameter error: invalid slab size,
 must be a positive integer");
  		return -EINVAL;
Quoted 1 line
  	}

My rule from years back was ... you find one typo, you "grep -rw"
the entire kernel tree.

rday

#3 lore raw
Quoted 27 lines · Robert P. J. Day
Quoted 25 lines · Matthew Sakai

I had to look at this for quite a while to figure out what was going on. We made the same spelling error twice in the same function and somehow only noticed the first one previously? Anyway,

Quoted 18 lines · Colin Ian King

There is another spelling mistake in a vdo_log_error message that I somehow overlooked last time. Fix it.

---
   drivers/md/dm-vdo/dm-vdo-target.c | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/dm-vdo-target.c +0 -1
index 1d8375cc3c3e..043549b1fc2e 100644
@@ -443,7 +443,7 @@ static int __must_check parse_slab_size(const char
 *slab_str, block_count_t *sla
     	result = kstrtoull(slab_str, 10, &value);
   	if (result) {
-		vdo_log_error("optional parameter error: invalid slab size,
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
drivers/md/dm-vdo/dm-vdo-target.c +1 -0
 must be a postive integer");
+		vdo_log_error("optional parameter error: invalid slab size,
 must be a positive integer");
   		return -EINVAL;
   	}

My rule from years back was ... you find one typo, you "grep -rw"
the entire kernel tree.

Yup, normally do, somehow this slipped through :-(

Quoted 2 lines

rday