Skip to contentSkip to conversation

fs: btrfs: Fix typo in error message

PATCH New Naoki Hayama 4 participants 5 messages Oct 12, 2020 – Oct 23, 2020 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: btrfs: Fix typo in error message

%s/occured/occurred/

---

 fs/btrfs/btrfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/btrfs.c +2 -2
index cbf9dcffeb..e48972ffa2 100644
@@ -150,7 +150,7 @@ int btrfs_ls(const char *path)
 	}
 	ret = btrfs_iter_dir(root, ino, show_dir);
 	if (ret < 0) {
-		error("An error occured while listing directory %s", path);
+		error("An error occurred while listing directory %s", path);
 		return ret;
 	}
 	return 0;
@@ -257,7 +257,7 @@ int btrfs_read(const char *file, void *buf, loff_t offset, loff_t len,
 
 	ret = btrfs_file_read(root, ino, offset, len, buf);
 	if (ret < 0) {
-		error("An error occured while reading file %s", file);
+		error("An error occurred while reading file %s", file);
 		return ret;
 	}
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 fs: btrfs: Fix typo in error message

In reply to Naoki Hayama
Quoted 3 lines · Naoki Hayama

%s/occured/occurred/

I'm definitely not the best guy to review, but this still looks good to me.

BTW, if you're still looking into the spell problems, it would be better to put all of the typo fixes into a big patch.

Thanks,
Qu

Quoted 28 lines

---

 fs/btrfs/btrfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/btrfs.c +2 -2
index cbf9dcffeb..e48972ffa2 100644
@@ -150,7 +150,7 @@ int btrfs_ls(const char *path)
 	}
 	ret = btrfs_iter_dir(root, ino, show_dir);
 	if (ret < 0) {
-		error("An error occured while listing directory %s", path);
+		error("An error occurred while listing directory %s", path);
 		return ret;
 	}
 	return 0;
@@ -257,7 +257,7 @@ int btrfs_read(const char *file, void *buf, loff_t offset, loff_t len,
 
 	ret = btrfs_file_read(root, ino, offset, len, buf);
 	if (ret < 0) {
-		error("An error occured while reading file %s", file);
+		error("An error occurred while reading file %s", file);
 		return ret;
 	}
 
#3 lore raw

PATCH 1/1 fs: btrfs: Fix typo in error message

Dear Qu,

Quoted 5 lines · Qu Wenruo
Quoted 2 lines · Naoki Hayama

%s/occured/occurred/

Quoted 8 lines
Quoted 1 line

I'm definitely not the best guy to review, but this still looks good to me.

BTW, if you're still looking into the spell problems, it would be better to put all of the typo fixes into a big patch.

Thank you for the review and the advice.
Next time I fix typos extensively, I will do so.

Best regards,
Naoki Hayama

Quoted 29 lines
Quoted 28 lines

---

 fs/btrfs/btrfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/btrfs.c +2 -2
index cbf9dcffeb..e48972ffa2 100644
@@ -150,7 +150,7 @@ int btrfs_ls(const char *path)
 	}
 	ret = btrfs_iter_dir(root, ino, show_dir);
 	if (ret < 0) {
-		error("An error occured while listing directory %s", path);
+		error("An error occurred while listing directory %s", path);
 		return ret;
 	}
 	return 0;
@@ -257,7 +257,7 @@ int btrfs_read(const char *file, void *buf, loff_t offset, loff_t len,
 
 	ret = btrfs_file_read(root, ino, offset, len, buf);
 	if (ret < 0) {
-		error("An error occured while reading file %s", file);
+		error("An error occurred while reading file %s", file);
 		return ret;
 	}
 
#4 lore raw

PATCH 1/1 fs: btrfs: Fix typo in error message

In reply to Naoki Hayama
Quoted 5 lines · Naoki Hayama

%s/occured/occurred/

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201022/730b28de/attachment.sig>