qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [PATCH 15/24] Fix typos in comments and code (occured -> occurred and related)
Date: Sun,  8 May 2011 17:05:10 +0100	[thread overview]
Message-ID: <1304870719-20885-16-git-send-email-stefanha@linux.vnet.ibm.com> (raw)
In-Reply-To: <1304870719-20885-1-git-send-email-stefanha@linux.vnet.ibm.com>

From: Stefan Weil <weil@mail.berlios.de>

The code changed here is an unused data type name (evt_flush_occurred).

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block.c                |    2 +-
 block/qcow2-refcount.c |    2 +-
 cpu-all.h              |    2 +-
 cpu-exec.c             |    2 +-
 hw/bt.h                |    2 +-
 hw/pcie.c              |    2 +-
 hw/pcie.h              |    2 +-
 hw/pflash_cfi02.c      |    2 +-
 target-arm/translate.c |    6 +++---
 target-m68k/helper.c   |    2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/block.c b/block.c
index 8767d31..f403718 100644
--- a/block.c
+++ b/block.c
@@ -747,7 +747,7 @@ DeviceState *bdrv_get_attached(BlockDriverState *bs)
  * Run consistency checks on an image
  *
  * Returns 0 if the check could be completed (it doesn't mean that the image is
- * free of errors) or -errno when an internal error occured. The results of the
+ * free of errors) or -errno when an internal error occurred. The results of the
  * check are stored in res.
  */
 int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res)
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
index 915d85a..d62dc1c 100644
--- a/block/qcow2-refcount.c
+++ b/block/qcow2-refcount.c
@@ -1063,7 +1063,7 @@ fail:
  * Checks an image for refcount consistency.
  *
  * Returns 0 if no errors are found, the number of errors in case the image is
- * detected as corrupted, and -errno when an internal error occured.
+ * detected as corrupted, and -errno when an internal error occurred.
  */
 int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res)
 {
diff --git a/cpu-all.h b/cpu-all.h
index 88126ea..78e3fc8 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -792,7 +792,7 @@ extern CPUState *cpu_single_env;
 #define CPU_INTERRUPT_FIQ    0x10 /* Fast interrupt pending.  */
 #define CPU_INTERRUPT_HALT   0x20 /* CPU halt wanted */
 #define CPU_INTERRUPT_SMI    0x40 /* (x86 only) SMI interrupt pending */
-#define CPU_INTERRUPT_DEBUG  0x80 /* Debug event occured.  */
+#define CPU_INTERRUPT_DEBUG  0x80 /* Debug event occurred.  */
 #define CPU_INTERRUPT_VIRQ   0x100 /* virtual interrupt pending.  */
 #define CPU_INTERRUPT_NMI    0x200 /* NMI pending. */
 #define CPU_INTERRUPT_INIT   0x400 /* INIT pending. */
diff --git a/cpu-exec.c b/cpu-exec.c
index 2cdcdc5..1b20f7b 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -509,7 +509,7 @@ int cpu_exec(CPUState *env1)
                        jump normally, then does the exception return when the
                        CPU tries to execute code at the magic address.
                        This will cause the magic PC value to be pushed to
-                       the stack if an interrupt occured at the wrong time.
+                       the stack if an interrupt occurred at the wrong time.
                        We avoid this by disabling interrupts when
                        pc contains a magic address.  */
                     if (interrupt_request & CPU_INTERRUPT_HARD
diff --git a/hw/bt.h b/hw/bt.h
index 4a702ad..3797254 100644
--- a/hw/bt.h
+++ b/hw/bt.h
@@ -1441,7 +1441,7 @@ typedef struct {
 #define EVT_FLUSH_OCCURRED		0x11
 typedef struct {
     uint16_t	handle;
-} __attribute__ ((packed)) evt_flush_occured;
+} __attribute__ ((packed)) evt_flush_occurred;
 #define EVT_FLUSH_OCCURRED_SIZE 2
 
 #define EVT_ROLE_CHANGE			0x12
diff --git a/hw/pcie.c b/hw/pcie.c
index 9de6149..39607bf 100644
--- a/hw/pcie.c
+++ b/hw/pcie.c
@@ -176,7 +176,7 @@ static void hotplug_event_notify(PCIDevice *dev)
 }
 
 /*
- * A PCI Express Hot-Plug Event has occured, so update slot status register
+ * A PCI Express Hot-Plug Event has occurred, so update slot status register
  * and notify OS of the event if necessary.
  *
  * 6.7.3 PCI Express Hot-Plug Events
diff --git a/hw/pcie.h b/hw/pcie.h
index bc909e2..a213fba 100644
--- a/hw/pcie.h
+++ b/hw/pcie.h
@@ -40,7 +40,7 @@ typedef enum {
      *
      * Not all the bits of slot control register match with the ones of
      * slot status. Not some bits of slot status register is used to
-     * show status, not to report event occurence.
+     * show status, not to report event occurrence.
      * So such bits must be masked out when checking the software
      * notification condition.
      */
diff --git a/hw/pflash_cfi02.c b/hw/pflash_cfi02.c
index 14bbc34..8fdafe6 100644
--- a/hw/pflash_cfi02.c
+++ b/hw/pflash_cfi02.c
@@ -367,7 +367,7 @@ static void pflash_write (pflash_t *pfl, target_phys_addr_t offset,
     case 4:
         switch (pfl->cmd) {
         case 0xA0:
-            /* Ignore writes while flash data write is occuring */
+            /* Ignore writes while flash data write is occurring */
             /* As we suppose write is immediate, this should never happen */
             return;
         case 0x80:
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 3119137..59190f6 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -1331,7 +1331,7 @@ static inline int gen_iwmmxt_shift(uint32_t insn, uint32_t mask, TCGv dest)
     return 0;
 }
 
-/* Disassemble an iwMMXt instruction.  Returns nonzero if an error occured
+/* Disassemble an iwMMXt instruction.  Returns nonzero if an error occurred
    (ie. an undefined instruction).  */
 static int disas_iwmmxt_insn(CPUState *env, DisasContext *s, uint32_t insn)
 {
@@ -2335,7 +2335,7 @@ static int disas_iwmmxt_insn(CPUState *env, DisasContext *s, uint32_t insn)
     return 0;
 }
 
-/* Disassemble an XScale DSP instruction.  Returns nonzero if an error occured
+/* Disassemble an XScale DSP instruction.  Returns nonzero if an error occurred
    (ie. an undefined instruction).  */
 static int disas_dsp_insn(CPUState *env, DisasContext *s, uint32_t insn)
 {
@@ -2681,7 +2681,7 @@ static TCGv gen_load_and_replicate(DisasContext *s, TCGv addr, int size)
     return tmp;
 }
 
-/* Disassemble a VFP instruction.  Returns nonzero if an error occured
+/* Disassemble a VFP instruction.  Returns nonzero if an error occurred
    (ie. an undefined instruction).  */
 static int disas_vfp_insn(CPUState * env, DisasContext *s, uint32_t insn)
 {
diff --git a/target-m68k/helper.c b/target-m68k/helper.c
index 514b039..faa8c42 100644
--- a/target-m68k/helper.c
+++ b/target-m68k/helper.c
@@ -714,7 +714,7 @@ void HELPER(macsats)(CPUState *env, uint32_t acc)
     if (env->macsr & MACSR_V) {
         env->macsr |= MACSR_PAV0 << acc;
         if (env->macsr & MACSR_OMC) {
-            /* The result is saturated to 32 bits, despite overflow occuring
+            /* The result is saturated to 32 bits, despite overflow occurring
                at 48 bits.  Seems weird, but that's what the hardware docs
                say.  */
             result = (result >> 63) ^ 0x7fffffff;
-- 
1.7.4.4

  parent reply	other threads:[~2011-05-08 16:06 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-08 16:04 [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011 Stefan Hajnoczi
2011-05-08 16:04 ` [Qemu-devel] [PATCH 01/24] Fix typo in code and comments Stefan Hajnoczi
2011-05-08 16:04 ` [Qemu-devel] [PATCH 02/24] Fix typos in comments (dependancy -> dependency) Stefan Hajnoczi
2011-05-08 16:04 ` [Qemu-devel] [PATCH 03/24] Fix typos in comments (accross -> across) Stefan Hajnoczi
2011-05-08 16:04 ` [Qemu-devel] [PATCH 04/24] Fix typos in comments (accessable -> accessible, priveleged -> privileged) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 05/24] Fix typo in comment (colum -> column) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 06/24] Fix typo in comment (auxilliary -> auxiliary) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 07/24] Fix typo in comment (embeded -> embedded) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 08/24] Fix typo in comment (consistant -> consistent) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 09/24] Fix typo in comment (dieing -> dying) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 10/24] Fix typos in comments (imediately -> immediately) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 11/24] Fix typos in comments (existance -> existence) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 12/24] Fix typos in comments (interupt -> interrupt) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 13/24] Fix typos in comments (instanciation -> instantiation) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 14/24] Fix typos in comments (neccessary -> necessary) Stefan Hajnoczi
2011-05-08 16:05 ` Stefan Hajnoczi [this message]
2011-05-08 16:05 ` [Qemu-devel] [PATCH 16/24] Fix typo in comment (relevent -> relevant) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 17/24] Fix typo in comment (responsiblity -> responsibility) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 18/24] Fix typo in comment (truely -> truly) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 19/24] Fix typos in comment (threshhold -> threshold, mapp -> map) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 20/24] ac97: Remove unused local variables Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 21/24] Fix spelling in comments (intruction -> instruction) Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 22/24] linux-user: Replace deprecated function Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 23/24] libcacard: add correct subdirectory dependencies Stefan Hajnoczi
2011-05-08 16:05 ` [Qemu-devel] [PATCH 24/24] lsi53c895a: Rename 'sense' to 'status' Stefan Hajnoczi
2011-05-12 12:57 ` [Qemu-devel] [PULL] Trivial patches for April 26 to May 8 2011 Paolo Bonzini
2011-05-12 13:34 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1304870719-20885-16-git-send-email-stefanha@linux.vnet.ibm.com \
    --to=stefanha@linux.vnet.ibm.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).