Skip to contentSkip to conversation

Fix several typos in documentation (found by codespell)

PATCH Applied Stefan Weil via 7 participants 8 messages Mar 19 – Mar 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix several typos in documentation (found by codespell)

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Regards,
Stefan

---
 contrib/plugins/traps.c        | 2 +-
 docs/about/emulation.rst       | 2 +-
 docs/devel/code-provenance.rst | 4 ++--
 docs/system/tls.rst            | 8 ++++----
 hw/arm/virt.c                  | 2 +-
 include/hw/arm/virt.h          | 2 +-
 include/plugins/qemu-plugin.h  | 2 +-
 qapi/block-core.json           | 6 +++---
 qapi/job.json                  | 2 +-
 qapi/uefi.json                 | 2 +-
 qemu-options.hx                | 4 ++--
 11 files changed, 18 insertions(+), 18 deletions(-)
contrib/plugins/traps.c +1 -1
index d5ddc0f3dd..a741580fbf 100644
@@ -4,7 +4,7 @@
  *
  * Traps - count traps
  *
- * Count the number of interrupts (asyncronous events), exceptions (synchronous
+ * Count the number of interrupts (asynchronous events), exceptions (synchronous
  * events) and host calls (e.g. semihosting) per cpu and report those counts on
  * exit.
  */
docs/about/emulation.rst +1 -1
index 76c6ea92ca..469f31bab6 100644
@@ -1043,7 +1043,7 @@ Count traps
 
 ``contrib/plugins/traps.c``
 
-This plugin counts the number of interrupts (asyncronous events), exceptions
+This plugin counts the number of interrupts (asynchronous events), exceptions
 (synchronous events) and host calls (e.g. semihosting) per cpu.
 
 Other emulation features
docs/devel/code-provenance.rst +2 -2
index 8cdc56f664..4e6a9afe0d 100644
@@ -213,7 +213,7 @@ The general principles when picking up abandoned work are:
  * Indicate where the original patch was obtained from (mailing list, bug
    tracker, author's git repo, etc) when sending it for review
  * Acknowledge the extra work of the new contributor by including their
-   ``Signed-off-by`` in the patch in addition to the orignal author's
+   ``Signed-off-by`` in the patch in addition to the original author's
  * Indicate who is responsible for what parts of the patch. This is typically
    done via a note in the commit message, just prior to the new contributor's
    ``Signed-off-by``::
@@ -259,7 +259,7 @@ process. A non-exhaustive list of examples is:
    container images from a clean git checkout.
 
  * eBPF: QEMU includes some generated eBPF machine code, since the required
-   eBPF compilation tools are not broadly available on all targetted OS
+   eBPF compilation tools are not broadly available on all targeted OS
    distributions. The corresponding eBPF C code for the binary is also
    provided. This is a time-limited exception until the eBPF toolchain is
    sufficiently broadly available in distros.
docs/system/tls.rst +4 -4
index 03fa1d8166..477ec7dcd1 100644
@@ -76,10 +76,10 @@ loaded certificate will preferred. IOW file naming can influence
 which certificates are used for a session.
 
 The use of multiple sets of certificates is intended to allow an
-incremental transition to certificates using different crytographic
+incremental transition to certificates using different cryptographic
 algorithms. This allows a newly deployed QEMU to introduce use of
 stronger cryptographic algorithms that will be preferred when talking
-to other newly deployed QEMU instances, while retaining compatbility
+to other newly deployed QEMU instances, while retaining compatibility
 with certificates issued to a historically deployed QEMU. This is
 notably useful to support live migration from an old QEMU deployed
 on older operating system releases, which may support fewer crypto
@@ -350,7 +350,7 @@ TLS certificates for Post-Quantum Cryptography
 
 Given a new enough gnutls release, suitably integrated & configured with the
 operating system crypto policies, QEMU is able to support post-quantum
-crytography on TLS enabled services, either exclusively or in a hybrid mode.
+cryptography on TLS enabled services, either exclusively or in a hybrid mode.
 
 In exclusive mode, only a single set of certificates need to be configured
 for QEMU, with PQC compliant algorithms. Such a QEMU configuration will only
@@ -404,7 +404,7 @@ Force disabling PQC via crypto priority
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 In the OS configuration for system crypto algorithm priorities has
-enabled PQC, this can (optionally) be overriden in QEMU configuration
+enabled PQC, this can (optionally) be overridden in QEMU configuration
 disable use of PQC using the ``priority`` parameter to the ``tls-creds-x509``
 object::
 
hw/arm/virt.c +1 -1
index 7456614d05..26fef92158 100644
@@ -2784,7 +2784,7 @@ static void virt_set_msi(Object *obj, const char *value, Error **errp)
     VirtMachineState *vms = VIRT_MACHINE(obj);
 
     if (!strcmp(value, "auto")) {
-        vms->msi_controller = VIRT_MSI_CTRL_AUTO; /* Will be overriden later */
+        vms->msi_controller = VIRT_MSI_CTRL_AUTO; /* Will be overridden later */
     } else if (!strcmp(value, "its")) {
         vms->msi_controller = VIRT_MSI_CTRL_ITS;
     } else if (!strcmp(value, "gicv2m")) {
include/hw/arm/virt.h +1 -1
index dba8ac7f2f..5fcbd1c76f 100644
@@ -101,7 +101,7 @@ typedef enum VirtIOMMUType {
 
 typedef enum VirtMSIControllerType {
     VIRT_MSI_CTRL_NONE,
-    /* This value is overriden at runtime.*/
+    /* This value is overridden at runtime.*/
     VIRT_MSI_CTRL_AUTO,
     /* Legacy option: its=off provides a GICv2m when using GICv2 */
     VIRT_MSI_LEGACY_OPT_ITS_OFF,
include/plugins/qemu-plugin.h +1 -1
index 9e4e40acee..2ce7a7fb6c 100644
@@ -1125,7 +1125,7 @@ bool qemu_plugin_read_register(struct qemu_plugin_register *handle,
  * Attempting to write a register with @buf smaller than the register size
  * will result in a crash or other undesired behavior.
  *
- * Returns true on sucess, false on failure.
+ * Returns true on success, false on failure.
  */
 QEMU_PLUGIN_API
 bool qemu_plugin_write_register(struct qemu_plugin_register *handle,
qapi/block-core.json +3 -3
index f8d446b3d6..e8adaaea34 100644
@@ -3122,7 +3122,7 @@
 # the device to write to the target path only.  Note that drive
 # mirroring includes `drive-mirror`, `blockdev-mirror` and
 # `block-commit` job (only in case of "active commit", when the node
-# being commited is used by the guest).  The ability to complete is
+# being committed is used by the guest).  The ability to complete is
 # signaled with a `BLOCK_JOB_READY` event.
 #
 # This command completes an active background block operation
@@ -5086,14 +5086,14 @@
 ##
 # @blockdev-set-active:
 #
-# Activate or inactivate a block device.  Use this to manage the
+# Activate or deactivate a block device.  Use this to manage the
 # handover of block devices on migration with qemu-storage-daemon.
 #
 # Activating a node automatically activates all of its child nodes
 # first.  Inactivating a node automatically inactivates any of its
 # child nodes that are not in use by a still active node.
 #
-# @node-name: Name of the graph node to activate or inactivate.  By
+# @node-name: Name of the graph node to activate or deactivate.  By
 #     default, all nodes are affected by the operation.
 #
 # @active: true if the nodes should be active when the command returns
qapi/job.json +1 -1
index 0a301fc094..31618e6ebc 100644
@@ -196,7 +196,7 @@
 # the device to write to the target path only.  Note that drive
 # mirroring includes `drive-mirror`, `blockdev-mirror` and
 # `block-commit` job (only in case of "active commit", when the node
-# being commited is used by the guest).  The ability to complete is
+# being committed is used by the guest).  The ability to complete is
 # signaled with a `BLOCK_JOB_READY` event.
 #
 # This command completes an active background block operation
qapi/uefi.json +1 -1
index a206c2e953..86f33b234b 100644
@@ -18,7 +18,7 @@
 ##
 # @UefiVariable:
 #
-# UEFI Variable.  Check the UEFI specifification for more detailed
+# UEFI Variable.  Check the UEFI specification for more detailed
 # information on the fields.
 #
 # @guid: variable namespace GUID
qemu-options.hx +2 -2
index 69e5a874c1..b58097d864 100644
@@ -3223,7 +3223,7 @@ SRST
         Enable/disable list in DHCP/DHCPv6/NDP
 
     ``map-host-loopback``
-        Addresse to refer to host
+        Address to refer to host
 
     ``map-guest-addr``
         Addr to translate to guest's address
@@ -3272,7 +3272,7 @@ SRST
 
     ``param=string``
          ``string`` will be passed to passt has a command line parameter,
-         we can have multiple occurences of the ``param`` parameter to
+         we can have multiple occurrences of the ``param`` parameter to
          pass multiple parameters to passt.
 
          For instance, to pass ``--trace --log=trace.log``:
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 43 lines · Stefan Weil via

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Regards,
Stefan

---
  contrib/plugins/traps.c        | 2 +-
  docs/about/emulation.rst       | 2 +-
  docs/devel/code-provenance.rst | 4 ++--
  docs/system/tls.rst            | 8 ++++----
  hw/arm/virt.c                  | 2 +-
  include/hw/arm/virt.h          | 2 +-
  include/plugins/qemu-plugin.h  | 2 +-
  qapi/block-core.json           | 6 +++---
  qapi/job.json                  | 2 +-
  qapi/uefi.json                 | 2 +-
  qemu-options.hx                | 4 ++--
  11 files changed, 18 insertions(+), 18 deletions(-)
qapi/job.json +1 -1
index 0a301fc094..31618e6ebc 100644
@@ -196,7 +196,7 @@
  # the device to write to the target path only.  Note that drive
  # mirroring includes `drive-mirror`, `blockdev-mirror` and
  # `block-commit` job (only in case of "active commit", when the node
-# being commited is used by the guest).  The ability to complete is
+# being committed is used by the guest).  The ability to complete is
  # signaled with a `BLOCK_JOB_READY` event.
  #
  # This command completes an active background block operation
qapi/uefi.json +0 -0
index a206c2e953..86f33b234b 100644

qapi/uefi.json line 22

Quoted 6 lines
qapi/uefi.json +1 -1
@@ -18,7 +18,7 @@
  ##
  # @UefiVariable:
  #
-# UEFI Variable.  Check the UEFI specifification for more detailed
+# UEFI Variable.  Check the UEFI specification for more detailed
  # information on the fields.

Sad to see fifi go :(

Reviewed-by on v1 1/1
#2 lore raw
In reply to Stefan Weil via
Quoted 10 lines · Stefan Weil

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Regards,
Stefan

Quoted 14 lines
---
  contrib/plugins/traps.c        | 2 +-
  docs/about/emulation.rst       | 2 +-
  docs/devel/code-provenance.rst | 4 ++--
  docs/system/tls.rst            | 8 ++++----
  hw/arm/virt.c                  | 2 +-
  include/hw/arm/virt.h          | 2 +-
  include/plugins/qemu-plugin.h  | 2 +-
  qapi/block-core.json           | 6 +++---
  qapi/job.json                  | 2 +-
  qapi/uefi.json                 | 2 +-
  qemu-options.hx                | 4 ++--
  11 files changed, 18 insertions(+), 18 deletions(-)
#3 lore raw
In reply to Stefan Weil via
Quoted 15 lines · Stefan Weil

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

qapi/block-core.json +0 -0
index f8d446b3d6..e8adaaea34 100644

qapi/block-core.json line 5093

Quoted 9 lines
qapi/block-core.json +1 -1
@@ -5086,14 +5086,14 @@
 ##
 # @blockdev-set-active:
 #
-# Activate or inactivate a block device.  Use this to manage the
+# Activate or deactivate a block device.  Use this to manage the
 # handover of block devices on migration with qemu-storage-daemon.
 #
 # Activating a node automatically activates all of its child nodes
 # first.  Inactivating a node automatically inactivates any of its

We should also change these to "Deactivating" and "deactivates" for consistency.

Quoted 10 lines
qapi/block-core.json +1 -1
 # child nodes that are not in use by a still active node.
 #
-# @node-name: Name of the graph node to activate or inactivate.  By
+# @node-name: Name of the graph node to activate or deactivate.  By
 #     default, all nodes are affected by the operation.
 #
 # @active: true if the nodes should be active when the command returns
Quoted 2 lines

``param=string``
``string`` will be passed to passt has a command line parameter,

should this be "as a command line parameter" ?

qapi/block-core.json

Quoted 6 lines
qapi/block-core.json +1 -2
-         we can have multiple occurences of the ``param`` parameter to
+         we can have multiple occurrences of the ``param`` parameter to
          pass multiple parameters to passt.
 
          For instance, to pass ``--trace --log=trace.log``:
--

thanks
-- PMM

#4 lore raw
In reply to Stefan Weil via
Quoted 11 lines · Stefan Weil via

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Regards,
Stefan

---

Missing s-o-b?

I can fold changes suggested by Peter to this patch, but without S-o-b it's not good.

Thanks,

/mjt

#5 lore raw
Quoted 11 lines · Michael Tokarev
Quoted 10 lines · Stefan Weil via

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Regards,
Stefan

Quoted 6 lines
Quoted 1 line

---

Missing s-o-b?

I can fold changes suggested by Peter to this patch, but without S-o-b it's not good.

Isn't there an S-o-b right in the first line of quoted text above?

Regards,
BALATON Zoltan

#6 lore raw
Quoted 7 lines · BALATON Zoltan
Quoted 6 lines · Michael Tokarev
Quoted 5 lines · Stefan Weil via

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

More typos can be found in the remaining code, mostly in comments.

Missing s-o-b?

I can fold changes suggested by Peter to this patch, but without S-o-b it's not good.

Isn't there an S-o-b right in the first line of quoted text above?

D'oh :) Don't do things in ENOCOFFEE mode :)

Picked up for trivial-patches tree, with suggestions by Peter.

/mjt

#7 lore raw

Am 22.03.26 um 12:47 schrieb Michael Tokarev:

Quoted 15 lines · BALATON Zoltan
Quoted 14 lines · Michael Tokarev
Quoted 12 lines · Stefan Weil via
Quoted 6 lines

These typos are part of the generated documentation. Therefore they should be fixed in the new release.

More typos can be found in the remaining code, mostly in comments.

Missing s-o-b?

I can fold changes suggested by Peter to this patch, but without S-o-b it's not good.

Quoted 7 lines
Quoted 1 line

Isn't there an S-o-b right in the first line of quoted text above?

D'oh :)  Don't do things in ENOCOFFEE mode :)

Picked up for trivial-patches tree, with suggestions by Peter.

/mjt

Thanks! My S-o-b is valid for Peter's good suggestions, too.

Stefan