Skip to contentSkip to conversation

Fix copy&paste typos in documentation comments

PATCH Superseded BALATON Zoltan 2 participants 2 messages Aug 21, 2012 – Aug 22, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix copy&paste typos in documentation comments

---
 memory.h |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
memory.h +6 -5
index bd1bbae..aba5721 100644
@@ -252,9 +252,9 @@ void memory_region_init_ram(MemoryRegion *mr,
                             uint64_t size);
 
 /**
- * memory_region_init_ram:  Initialize RAM memory region from a user-provided.
- *                          pointer.  Accesses into the region will modify
- *                          memory directly.
+ * memory_region_init_ram_ptr:  Initialize RAM memory region from a
+ *                          user-provided pointer.  Accesses into the
+ *                          region will modify memory directly.
  *
  * @mr: the #MemoryRegion to be initialized.
  * @name: the name of the region.
@@ -581,7 +581,8 @@ void memory_region_add_subregion(MemoryRegion *mr,
                                  target_phys_addr_t offset,
                                  MemoryRegion *subregion);
 /**
- * memory_region_add_subregion: Add a subregion to a container, with overlap.
+ * memory_region_add_subregion_overlap: Add a subregion to a container
+ *                                      with overlap.
  *
  * Adds a subregion at @offset.  The subregion may overlap with other
  * subregions.  Conflicts are resolved by having a higher @priority hide a
@@ -743,7 +744,7 @@ void memory_listener_unregister(MemoryListener *listener);
 void memory_global_dirty_log_start(void);
 
 /**
- * memory_global_dirty_log_stop: begin dirty logging for all regions
+ * memory_global_dirty_log_stop: end dirty logging for all regions
  */
 void memory_global_dirty_log_stop(void);
 
Signature · 1 line
1.7.10
#1 lore raw
Quoted 11 lines · BALATON Zoltan
---
  memory.h |   11 ++++++-----
  1 file changed, 6 insertions(+), 5 deletions(-)
memory.h +0 -0
index bd1bbae..aba5721 100644

memory.h void memory_region_init_ram(MemoryRegion *mr, · line 257

Quoted 9 lines
memory.h +3 -3
@@ -252,9 +252,9 @@ void memory_region_init_ram(MemoryRegion *mr,
                              uint64_t size);
 
  /**
- * memory_region_init_ram:  Initialize RAM memory region from a user-provided.
- *                          pointer.  Accesses into the region will modify
- *                          memory directly.
+ * memory_region_init_ram_ptr:  Initialize RAM memory region from a
+ *                          user-provided pointer.  Accesses into the
+ *                          region will modify memory directly.
                               ^^^

Would be better if you make it align.

Regards,
chenwj

Signature · 5 lines
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj