From 54dcc25d8bf1f6cd050360a15d3b475ee92881a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Fri, 28 Feb 2025 19:56:23 +0100
Subject: [PATCH] treewide: Fix some spelling errors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

All in debug messages or code comments so not user / client visible.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
---
 cli/mmcli-modem.c                                         | 8 ++++----
 ...sktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml | 2 +-
 src/mm-base-bearer.c                                      | 2 +-
 src/mm-broadband-modem-mbim.c                             | 2 +-
 src/mm-broadband-modem-qmi.c                              | 2 +-
 src/mm-iface-modem-signal.c                               | 2 +-
 src/mm-iface-modem.c                                      | 4 ++--
 src/mm-port-qmi.c                                         | 2 +-
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c
index 2c17f5b46..4d806ef58 100644
--- a/cli/mmcli-modem.c
+++ b/cli/mmcli-modem.c
@@ -1131,7 +1131,7 @@ get_modem_ready (GObject      *source,
 
     /* Request to reset the modem? */
     if (reset_flag) {
-        g_debug ("Asynchronously reseting modem...");
+        g_debug ("Asynchronously resetting modem...");
         mm_modem_reset (ctx->modem,
                         ctx->cancellable,
                         (GAsyncReadyCallback)reset_ready,
@@ -1141,7 +1141,7 @@ get_modem_ready (GObject      *source,
 
     /* Request to reset the modem to factory state? */
     if (factory_reset_str) {
-        g_debug ("Asynchronously factory-reseting modem...");
+        g_debug ("Asynchronously factory-resetting modem...");
         mm_modem_factory_reset (ctx->modem,
                                 factory_reset_str,
                                 ctx->cancellable,
@@ -1384,7 +1384,7 @@ mmcli_modem_run_synchronous (GDBusConnection *connection)
     if (reset_flag) {
         gboolean result;
 
-        g_debug ("Synchronously reseting modem...");
+        g_debug ("Synchronously resetting modem...");
         result = mm_modem_reset_sync (ctx->modem, NULL, &error);
         reset_process_reply (result, error);
         return;
@@ -1394,7 +1394,7 @@ mmcli_modem_run_synchronous (GDBusConnection *connection)
     if (factory_reset_str) {
         gboolean result;
 
-        g_debug ("Synchronously factory-reseting modem...");
+        g_debug ("Synchronously factory-resetting modem...");
         result = mm_modem_factory_reset_sync (ctx->modem,
                                               factory_reset_str,
                                               NULL,
diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
index d554af9e6..db001d25a 100644
--- a/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
+++ b/introspection/org.freedesktop.ModemManager1.Modem.Modem3gpp.ProfileManager.xml
@@ -112,7 +112,7 @@
         allows the user to easily request the deletion of a profile that has been
         provided in the List() operation.
 
-        This method may just clear the existing profiles (i.e. reseting all the
+        This method may just clear the existing profiles (i.e. resetting all the
         properties to defaults) instead of fully removing them if the profiles
         cannot be fully removed. In this case, the method will succeed, but the
         size of the list of profiles will not change.
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c
index d199e2ac1..52e8db02f 100644
--- a/src/mm-base-bearer.c
+++ b/src/mm-base-bearer.c
@@ -519,7 +519,7 @@ bearer_update_status (MMBaseBearer *self,
     if (self->priv->status == MM_BEARER_STATUS_DISCONNECTED) {
         g_autoptr(GString) report = NULL;
 
-        /* Report disconnection via dispatcher scripts, before reseting the interface */
+        /* Report disconnection via dispatcher scripts, before resetting the interface */
         bearer_run_dispatcher_scripts (self, FALSE);
 
         bearer_reset_interface_status (self);
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 403f01dba..47f3799b8 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -3612,7 +3612,7 @@ initialization_reset_ports (GTask *task)
 
     self = g_task_get_source_object (task);
 
-    /* reseting the data interfaces is really only needed if the device
+    /* resetting the data interfaces is really only needed if the device
      * hasn't been hotplugged */
     if (mm_base_modem_get_hotplugged (MM_BASE_MODEM (self))) {
         mm_obj_dbg (self, "not running data interface reset procedure: device is hotplugged");
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c
index 08a435c4c..7359fccbd 100644
--- a/src/mm-broadband-modem-qmi.c
+++ b/src/mm-broadband-modem-qmi.c
@@ -13898,7 +13898,7 @@ initialization_reset_ports (GTask *task)
 
     self = g_task_get_source_object (task);
 
-    /* reseting the data interfaces is really only needed if the device
+    /* resetting the data interfaces is really only needed if the device
      * hasn't been hotplugged */
     if (mm_base_modem_get_hotplugged (MM_BASE_MODEM (self))) {
         mm_obj_dbg (self, "not running data interface reset procedure: device is hotplugged");
diff --git a/src/mm-iface-modem-signal.c b/src/mm-iface-modem-signal.c
index b2a7fe611..da37921b3 100644
--- a/src/mm-iface-modem-signal.c
+++ b/src/mm-iface-modem-signal.c
@@ -214,7 +214,7 @@ check_interface_reset (MMIfaceModemSignal *self)
     priv = get_private (self);
 
     if (!priv->enabled || (!priv->rate && !priv->rssi_threshold && !priv->error_rate_threshold)) {
-        mm_obj_dbg (self, "reseting extended signal information...");
+        mm_obj_dbg (self, "resetting extended signal information...");
         internal_signal_update (self, NULL, NULL, NULL, NULL, NULL, NULL);
     }
 }
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 63996fb5d..92ff82147 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -2608,7 +2608,7 @@ handle_reset_auth_ready (MMBaseModem        *self,
         return;
     }
 
-    /* If reseting is not implemented, report an error */
+    /* If resetting is not implemented, report an error */
     if (!MM_IFACE_MODEM_GET_IFACE (self)->reset || !MM_IFACE_MODEM_GET_IFACE (self)->reset_finish) {
         mm_dbus_method_invocation_return_error_literal (ctx->invocation, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED,
                                                         "Operation not supported");
@@ -2701,7 +2701,7 @@ handle_factory_reset_auth_ready (MMBaseModem               *self,
         return;
     }
 
-    /* If reseting is not implemented, report an error */
+    /* If resetting is not implemented, report an error */
     if (!MM_IFACE_MODEM_GET_IFACE (self)->factory_reset || !MM_IFACE_MODEM_GET_IFACE (self)->factory_reset_finish) {
         mm_dbus_method_invocation_return_error_literal (ctx->invocation, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED,
                                                         "Operation not supported");
diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c
index 38703bc20..ff9ba282c 100644
--- a/src/mm-port-qmi.c
+++ b/src/mm-port-qmi.c
@@ -945,7 +945,7 @@ delete_all_links_ready (QmiDevice    *device,
 
     /* expected data format only applicable to qmi_wwan */
     if (g_strcmp0 (self->priv->net_driver, "qmi_wwan") == 0) {
-        mm_obj_dbg (self, "reseting expected kernel data format to 802.3 in data interface '%s'",
+        mm_obj_dbg (self, "resetting expected kernel data format to 802.3 in data interface '%s'",
                     mm_port_get_device (MM_PORT (ctx->data)));
         if (!qmi_device_set_expected_data_format (ctx->device, QMI_DEVICE_EXPECTED_DATA_FORMAT_802_3, &error)) {
             g_task_return_error (task, error);
-- 
GitLab