Skip to contentSkip to conversation

hw/elf_ops: Fix a typo

PATCH Applied Philippe Mathieu-Daudé 4 participants 4 messages Feb 25, 2021 – Mar 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/elf_ops: Fix a typo

g_mapped_file_new_from_fd()'s parameter is named 'writable'.

---
 include/hw/elf_ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/elf_ops.h +1 -1
index 8e8436831d2..304f266bf3b 100644
@@ -417,7 +417,7 @@ static int glue(load_elf, SZ)(const char *name, int fd,
 
     /*
      * Since we want to be able to modify the mapped buffer, we set the
-     * 'writeble' parameter to 'true'. Modifications to the buffer are not
+     * 'writable' parameter to 'true'. Modifications to the buffer are not
      * written back to the file.
      */
     mapped_file = g_mapped_file_new_from_fd(fd, true, NULL);
Signature · 1 line
2.26.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Philippe Mathieu-Daudé

g_mapped_file_new_from_fd()'s parameter is named 'writable'.

---
include/hw/elf_ops.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/elf_ops.h +0 -0
index 8e8436831d2..304f266bf3b 100644

include/hw/elf_ops.h static int glue(load_elf, SZ)(const char *name, int fd, · line 420

Quoted 5 lines
include/hw/elf_ops.h +1 -1
@@ -417,7 +417,7 @@ static int glue(load_elf, SZ)(const char *name, int fd,
 
    /*
     * Since we want to be able to modify the mapped buffer, we set the
-     * 'writeble' parameter to 'true'. Modifications to the buffer are not
+     * 'writable' parameter to 'true'. Modifications to the buffer are not

Oooops :-)

Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 3 lines · Philippe Mathieu-Daudé

g_mapped_file_new_from_fd()'s parameter is named 'writable'.

Quoted 19 lines
---
 include/hw/elf_ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/elf_ops.h +1 -1
index 8e8436831d2..304f266bf3b 100644
@@ -417,7 +417,7 @@ static int glue(load_elf, SZ)(const char *name, int fd,
 
     /*
      * Since we want to be able to modify the mapped buffer, we set the
-     * 'writeble' parameter to 'true'. Modifications to the buffer are not
+     * 'writable' parameter to 'true'. Modifications to the buffer are not
      * written back to the file.
      */
     mapped_file = g_mapped_file_new_from_fd(fd, true, NULL);
Signature · 1 line
2.26.2

dme.

Signature · 1 line
I've always been mad, I know I've been mad, like the most of us are.
#3 lore raw
In reply to Philippe Mathieu-Daudé

Le 25/02/2021 à 19:13, Philippe Mathieu-Daudé a écrit :

Quoted 13 lines

g_mapped_file_new_from_fd()'s parameter is named 'writable'.

---
 include/hw/elf_ops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/elf_ops.h +0 -0
index 8e8436831d2..304f266bf3b 100644

include/hw/elf_ops.h static int glue(load_elf, SZ)(const char *name, int fd, · line 423

Quoted 8 lines
include/hw/elf_ops.h +1 -1
@@ -417,7 +417,7 @@ static int glue(load_elf, SZ)(const char *name, int fd,
 
     /*
      * Since we want to be able to modify the mapped buffer, we set the
-     * 'writeble' parameter to 'true'. Modifications to the buffer are not
+     * 'writable' parameter to 'true'. Modifications to the buffer are not
      * written back to the file.
      */
     mapped_file = g_mapped_file_new_from_fd(fd, true, NULL);

Applied to my trivial-patches branch.

Thanks,
Laurent