Skip to contentSkip to conversation

memory.h: fix types in comments

PATCH Applied Li Qiang 3 participants 4 messages Oct 9, 2018 – Oct 25, 2018

lore
Share & tools
lore

Li Qiang

author
#0 lore raw

PATCH 1/1 memory.h: fix types in comments

---
 include/exec/memory.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/exec/memory.h +3 -3
index 3a427aa..1fbbdaf 100644
@@ -935,7 +935,7 @@ uint64_t memory_region_size(MemoryRegion *mr);
 /**
  * memory_region_is_ram: check whether a memory region is random access
  *
- * Returns %true is a memory region is random access.
+ * Returns %true if a memory region is random access.
  *
  * @mr: the memory region being queried
  */
@@ -947,7 +947,7 @@ static inline bool memory_region_is_ram(MemoryRegion *mr)
 /**
  * memory_region_is_ram_device: check whether a memory region is a ram device
  *
- * Returns %true is a memory region is a device backed ram region
+ * Returns %true if a memory region is a device backed ram region
  *
  * @mr: the memory region being queried
  */
@@ -1161,7 +1161,7 @@ uint8_t memory_region_get_dirty_log_mask(MemoryRegion *mr);
 /**
  * memory_region_is_rom: check whether a memory region is ROM
  *
- * Returns %true is a memory region is read-only memory.
+ * Returns %true if a memory region is read-only memory.
  *
  * @mr: the memory region being queried
  */
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Li Qiang
---
 include/exec/memory.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Thanks. Contents of patch

but the commit message should say "fix typos", not "fix types" (a 'typo' is a typing mistake; a 'type' is something like "uint32_t".)

thanks
-- PMM

author
#2 lore raw
Quoted 6 lines · Peter Maydell <[email protected]> 于2018年10月9日周二 下午6:26写道:
Quoted 4 lines · Li Qiang
---
 include/exec/memory.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 7 lines

Thanks. Contents of patch

but the commit message should say "fix typos", not "fix types" (a 'typo' is a typing mistake; a 'type' is something like "uint32_t".)

Indeed, hope the maintainer can fix this typo when queuing this patch, :)

In additon, Cc: [email protected]

Quoted 4 lines

thanks
-- PMM

#3 lore raw
Quoted 16 lines · Li Qiang

Peter Maydell <[email protected] <mailto:[email protected]>> 于2018年10月9日周二 下午6:26写道:

On 9 October 2018 at 11:21, Li Qiang <[email protected] <mailto:[email protected]>> wrote:
> Signed-off-by: Li Qiang <[email protected] <mailto:[email protected]>> > ---
>  include/exec/memory.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Thanks. Contents of patch

<mailto:[email protected]>>

Quoted 8 lines

but the commit message should say "fix typos", not "fix types" (a 'typo' is a typing mistake; a 'type' is something like "uint32_t".)

Indeed, hope the maintainer can fix this typo when queuing this patch, :)

In additon, Cc: [email protected] <mailto:[email protected]>

Applied to qemu-trivial branch

Thanks,
Laurent