diff options
author | Guido Günther <agx@sigxcpu.org> | 2025-03-11 22:47:35 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2025-03-11 23:15:57 +0100 |
commit | 68933455df82b2259c1a091232ded3334c87c551 (patch) | |
tree | fa451fa7ccc49526d238f0ed59a6d11875d11a62 /src | |
parent | a19fd8588402161a8e0b7eb1a08ebf7ab17f73da (diff) |
treewide: Fix typos
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Diffstat (limited to 'src')
26 files changed, 35 insertions, 35 deletions
diff --git a/src/kerneldevice/mm-kernel-device-qrtr.h b/src/kerneldevice/mm-kernel-device-qrtr.h index 26ad0748..f0c5bbcc 100644 --- a/src/kerneldevice/mm-kernel-device-qrtr.h +++ b/src/kerneldevice/mm-kernel-device-qrtr.h @@ -28,7 +28,7 @@ /* Driver string reported for all QRTR nodes; not really a kernel driver */ #define MM_KERNEL_DEVICE_QRTR_DRIVER "qrtr" -/* Subsytem string reported for all QRTR nodes; not really a kernel subsystem */ +/* Subsystem string reported for all QRTR nodes; not really a kernel subsystem */ #define MM_KERNEL_DEVICE_QRTR_SUBSYSTEM "qrtr" /* Physical device UID string reported for all QRTR nodes; equal to the UID diff --git a/src/mm-base-call.h b/src/mm-base-call.h index 1b262027..4359497e 100644 --- a/src/mm-base-call.h +++ b/src/mm-base-call.h @@ -99,7 +99,7 @@ struct _MMBaseCallClass { GType mm_base_call_get_type (void); G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMBaseCall, g_object_unref) -/* This one can be overriden by plugins */ +/* This one can be overridden by plugins */ MMBaseCall *mm_base_call_new (MMBaseModem *modem, MMCallDirection direction, const gchar *number, diff --git a/src/mm-base-cbm.c b/src/mm-base-cbm.c index d35141be..212d2ce8 100644 --- a/src/mm-base-cbm.c +++ b/src/mm-base-cbm.c @@ -354,9 +354,9 @@ mm_base_cbm_new_with_part (MMBaseModem *modem, if (!mm_base_cbm_take_part (self, first_part, error)) g_clear_object (&self); - /* We do export uncomplete multipart messages, so clients can make use of it + /* We do export incomplete multipart messages, so clients can make use of it * Only the STATE of the CBM object will be valid in the exported DBus - * interface intially.*/ + * interface initially.*/ if (self) mm_base_cbm_export (self); diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c index 6e7542b5..ce9eb032 100644 --- a/src/mm-base-manager.c +++ b/src/mm-base-manager.c @@ -359,7 +359,7 @@ device_removed (MMBaseManager *self, mm_obj_msg (self, "port %s released by device '%s'", name, mm_device_get_uid (device)); mm_device_release_port_name (device, subsystem, name); - /* If port probe list gets empty, remove the device object iself */ + /* If port probe list gets empty, remove the device object itself */ if (!mm_device_peek_port_probe_list (device)) { mm_obj_dbg (self, "removing empty device '%s'", mm_device_get_uid (device)); if (mm_plugin_manager_device_support_check_cancel (self->priv->plugin_manager, device)) diff --git a/src/mm-base-modem-at.h b/src/mm-base-modem-at.h index ef15cd94..1813b054 100644 --- a/src/mm-base-modem-at.h +++ b/src/mm-base-modem-at.h @@ -164,7 +164,7 @@ MMBaseModemAtResponseProcessorResult mm_base_modem_response_processor_continue_o GError **result_error); /* - * Response processor for commands that are partialy treated as OPTIONAL, where + * Response processor for commands that are partially treated as OPTIONAL, where * a failure in the command triggers a failure in the sequence only for non-AT * generic errors. If successful, it finishes the sequence with the response of * the command which didn't fail. diff --git a/src/mm-base-sms.c b/src/mm-base-sms.c index 153a6c44..202b178f 100644 --- a/src/mm-base-sms.c +++ b/src/mm-base-sms.c @@ -1875,7 +1875,7 @@ mm_base_sms_multipart_new (MMBaseModem *modem, if (!mm_base_sms_multipart_take_part (self, first_part, error)) g_clear_object (&self); - /* We do export uncomplete multipart messages, in order to be able to + /* We do export incomplete multipart messages, in order to be able to * request removal of all parts of those multipart SMS that will never * get completed. * Only the STATE of the SMS object will be valid in the exported DBus diff --git a/src/mm-broadband-bearer.c b/src/mm-broadband-bearer.c index f2f4127f..69bf699b 100644 --- a/src/mm-broadband-bearer.c +++ b/src/mm-broadband-bearer.c @@ -1313,7 +1313,7 @@ data_flash_3gpp_ready (MMPortSerial *data, /* Send another CGACT on the primary port (also the data port when the modem * only has one serial port) if the previous one failed. Some modems, like * the Huawei E173 (fw 11.126.15.00.445) stop responding on their primary - * port when the CGACT is sent on the separte data port. + * port when the CGACT is sent on the separate data port. */ if (MM_PORT_SERIAL (ctx->primary) == data) mm_obj_dbg (self, "sending PDP context deactivation in primary/data port..."); diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index 47f3799b..7185a059 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -647,7 +647,7 @@ qmi_load_current_capabilities_ready (MMIfaceModem *self, ctx->current_qmi = mm_shared_qmi_load_current_capabilities_finish (self, res, &error); if (error) { - mm_obj_dbg (self, "couldn't load currrent capabilities using QMI over MBIM: %s", error->message); + mm_obj_dbg (self, "couldn't load current capabilities using QMI over MBIM: %s", error->message); g_clear_error (&error); } @@ -2094,7 +2094,7 @@ radio_state_set_up_ready (MbimDevice *device, } /* The SDX55 returns "Operation not allowed", but not really sure about other - * older devices. The original logic in the MBIM implemetation triggered a retry + * older devices. The original logic in the MBIM implementation triggered a retry * for any kind of error, so let's do the same for now. */ mm_obj_warn (self, "%s", error->message); g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_RETRY, "Invalid transition"); @@ -2833,7 +2833,7 @@ base_stations_info_query_ready (MbimDevice *device, next = g_list_next (l); data = (MMRfInfo *)(l->data); - /* Comparing the derived frequncy value from NRARFCN with received center frequency data to map the NR CELL */ + /* Comparing the derived frequency value from NRARFCN with received center frequency data to map the NR CELL */ if (fabs (mm_nrarfcn_to_frequency (nr_serving_cells[i]->nrarfcn, self) - data->center_frequency) < FREQUENCY_TOLERANCE_HZ) { mm_obj_dbg (self, "Merging radio frequency data with 5gnr serving cell info"); CELL_INFO_SET_UINT (data->serving_cell_type, MM_SERVING_CELL_TYPE_INVALID, nr5g_set_serving_cell_type, MM_CELL_INFO_NR5G); @@ -7183,7 +7183,7 @@ register_state_set_ready (MbimDevice *device, * not "No error", making it unsuitable as condition for registration check. * Still, there are certain modems (e.g. Fibocom NL668) that will * report Failure+NwError=0 even after the modem has already reported a - * succesful registration via indications after the set operation. If + * successful registration via indications after the set operation. If * that is the case, log about it and ignore the error; we are anyway * reloading the registration info after the set, so it should not be * a big issue. */ @@ -8389,7 +8389,7 @@ modem_3gpp_ussd_check_support (MMIfaceModem3gppUssd *self, } /*****************************************************************************/ -/* USSD encoding/deconding helpers +/* USSD encoding/decoding helpers * * Note: we don't care about subclassing the ussd_encode/decode methods in the * interface, as we're going to use this methods just here. @@ -9954,7 +9954,7 @@ set_device_slot_mappings_ready (MbimDevice *device, "SIM slot switch to '%u' failed", slot_number); } else { /* Keep pending_sim_slot_switch_action flag TRUE to cleanly ignore SIM related indications - * during slot swithing, We don't want SIM related indications received trigger the update + * during slot switching, We don't want SIM related indications received trigger the update * of SimSlots property, which may not be what we want as the modem object is being shutdown */ self->priv->active_slot_index = slot_number + 1; g_task_return_boolean (task, TRUE); diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index ee216525..5bccbc61 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -5074,7 +5074,7 @@ modem_3gpp_load_eps_ue_mode_operation (MMIfaceModem3gpp *self, } /*****************************************************************************/ -/* UE mode of operation for EPS settin (3GPP interface) */ +/* UE mode of operation for EPS setting (3GPP interface) */ static gboolean modem_3gpp_set_eps_ue_mode_operation_finish (MMIfaceModem3gpp *self, diff --git a/src/mm-error-helpers.c b/src/mm-error-helpers.c index b1efab21..75598c46 100644 --- a/src/mm-error-helpers.c +++ b/src/mm-error-helpers.c @@ -597,7 +597,7 @@ mm_register_error_mapping (GQuark input_error_domain, input->error_code = input_error_code; /* ensure no other error is registered with the same hash, we don't want or - * expect dupicates*/ + * expect duplicates*/ g_assert (!g_hash_table_lookup (error_mappings, input)); output = g_slice_new0 (DomainCodePair); diff --git a/src/mm-iface-modem-3gpp-profile-manager.c b/src/mm-iface-modem-3gpp-profile-manager.c index 01d3c791..d76202b7 100644 --- a/src/mm-iface-modem-3gpp-profile-manager.c +++ b/src/mm-iface-modem-3gpp-profile-manager.c @@ -544,7 +544,7 @@ set_profile_step_select_profile_exact (GTask *task) mm_obj_dbg (self, "reusing profile '%s'", ctx->index_field_value_str); ctx->stored = g_object_ref (existing); } else - mm_obj_dbg (self, "overwritting profile '%s'", ctx->index_field_value_str); + mm_obj_dbg (self, "overwriting profile '%s'", ctx->index_field_value_str); ctx->step++; set_profile_step (task); diff --git a/src/mm-iface-modem-messaging.c b/src/mm-iface-modem-messaging.c index 76c8acf5..98e859a9 100644 --- a/src/mm-iface-modem-messaging.c +++ b/src/mm-iface-modem-messaging.c @@ -435,7 +435,7 @@ handle_set_default_storage_auth_ready (MMBaseModem *self, return; } - mm_obj_info (self, "procesing user request to set default storage '%s'...", + mm_obj_info (self, "processing user request to set default storage '%s'...", mm_sms_storage_get_string (ctx->storage)); if (!(MM_IFACE_MODEM_MESSAGING_GET_IFACE (ctx->self)->set_default_storage) || diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index fca14338..63a960f1 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -1091,7 +1091,7 @@ prepare_hangup_all_foreach (MMBaseCall *call, * * The 3GPP TS27.007 spec for +CHUP states that the "Execution command causes * the TA to hangup the current call of the MT." This sentence leaves a bit of open - * interpretation to the implementors, because a current call can be considered only + * interpretation to the implementers, because a current call can be considered only * the active ones, or otherwise any call (active, held or waiting). * * And so, the u-blox TOBY-L4 takes one interpretation and "In case of multiple diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index f61d2663..772a2de8 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -277,7 +277,7 @@ mm_create_device_identifier (guint vid, if (ati) g_string_append (devid, ati); if (ati1) { - /* Only append "ATI1" if it's differnet than "ATI" */ + /* Only append "ATI1" if it's different than "ATI" */ if (!ati || (strcmp (ati, ati1) != 0)) g_string_append (devid, ati1); } @@ -1261,7 +1261,7 @@ mm_3gpp_parse_cops_test_response (const gchar *reply, /* Cell access technology (GSM, UTRAN, etc) got added later and not all * modems implement it. Some modesm have quirks that make it hard to - * use one regular experession for matching both pre-UMTS and UMTS + * use one regular expression for matching both pre-UMTS and UMTS * responses. So try UMTS-format first and fall back to pre-UMTS if * we get no UMTS-formst matches. */ diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 6c41596e..f4b2ae8b 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -590,11 +590,11 @@ guint mm_sim_validate_mnc_length (const guint8 *bin, /*****************************************************************************/ /* Signal quality percentage from different sources */ -/* Limit the value betweeen [-113,-51] and scale it to a percentage */ +/* Limit the value between [-113,-51] and scale it to a percentage */ #define MM_RSSI_TO_QUALITY(rssi) \ (guint8)(100 - ((CLAMP (rssi, -113, -51) + 51) * 100 / (-113 + 51))) -/* Limit the value betweeen [-110,-60] and scale it to a percentage */ +/* Limit the value between [-110,-60] and scale it to a percentage */ #define MM_RSRP_TO_QUALITY(rsrp) \ (guint8)(100 - ((CLAMP (rsrp, -110, -60) + 60) * 100 / (-110 + 60))) diff --git a/src/mm-plugin.c b/src/mm-plugin.c index 63ff8853..32605b89 100644 --- a/src/mm-plugin.c +++ b/src/mm-plugin.c @@ -855,7 +855,7 @@ mm_plugin_supports_port (MMPlugin *self, } /* If a modem is already available and the plugin says that only one AT port is - * expected, check if we alredy got the single AT port. And if so, we know this + * expected, check if we already got the single AT port. And if so, we know this * port being probed won't be AT. */ if (self->priv->single_at && mm_port_probe_list_has_at_port (mm_device_peek_port_probe_list (device)) && diff --git a/src/mm-port-qmi.c b/src/mm-port-qmi.c index ff9ba282..80bde14b 100644 --- a/src/mm-port-qmi.c +++ b/src/mm-port-qmi.c @@ -2369,7 +2369,7 @@ qmi_device_open_second_ready (QmiDevice *qmi_device, /* Otherwise, fatal */ ctx->error = g_steal_pointer (&error); } else { - /* If the open with CTL data format is sucessful, update all settings + /* If the open with CTL data format is successful, update all settings * that we would have received with the internal setup data format * process */ self->priv->kernel_data_modes = ctx->kernel_data_modes; diff --git a/src/mm-port-serial-qcdm.c b/src/mm-port-serial-qcdm.c index 080f639f..06656d40 100644 --- a/src/mm-port-serial-qcdm.c +++ b/src/mm-port-serial-qcdm.c @@ -89,7 +89,7 @@ parse_qcdm (GByteArray *response, /* Get the offset into the buffer of where the QCDM frame starts */ if (!find_qcdm_start (response, &start)) { /* As a special case detect \r\nNO CARRIER\r\n which happens when a port - * is in PPP mode and QCDM attemps to send QCDM requests. The modem will + * is in PPP mode and QCDM attempts to send QCDM requests. The modem will * often terminate PPP when it receives the bogus frame. */ if (response->len >= sizeof (no_carrier) && memcmp (response->data, no_carrier, sizeof (no_carrier)) == 0) { diff --git a/src/mm-shared-qmi.c b/src/mm-shared-qmi.c index f9563285..f6a7404d 100644 --- a/src/mm-shared-qmi.c +++ b/src/mm-shared-qmi.c @@ -1072,7 +1072,7 @@ mm_shared_qmi_load_current_capabilities (MMIfaceModem *self, * "mode preference" TLV to select currently enabled capabilities. * b) If the device supports NAS Technology Preference (older devices), * we use this method to select currently enabled capabilities. - * c) If none of those messages is supported we don't allow swiching + * c) If none of those messages is supported we don't allow switching * capabilities. */ diff --git a/src/mm-sim-qmi.c b/src/mm-sim-qmi.c index e408ab7e..0ac3b6eb 100644 --- a/src/mm-sim-qmi.c +++ b/src/mm-sim-qmi.c @@ -469,7 +469,7 @@ uim_get_imsi_ready (QmiClientUim *client, MM_CORE_ERROR_FAILED, "IMSI is malformed"); else { - /* EFimsi contains a length byte, follwed by a nibble for parity, + /* EFimsi contains a length byte, followed by a nibble for parity, * and then followed by the actual IMSI in BCD. After converting * the BCD into a decimal string, we simply skip the first 3 * decimal digits to obtain the IMSI. */ diff --git a/src/plugins/huawei/mm-broadband-bearer-huawei.c b/src/plugins/huawei/mm-broadband-bearer-huawei.c index 679e2d0b..19112af4 100644 --- a/src/plugins/huawei/mm-broadband-bearer-huawei.c +++ b/src/plugins/huawei/mm-broadband-bearer-huawei.c @@ -325,7 +325,7 @@ connect_3gpp_context_step (GTask *task) /* Clear task */ self->priv->connect_pending = NULL; - /* If we already sent the connetion command, send the disconnection one */ + /* If we already sent the connection command, send the disconnection one */ if (ctx->step > CONNECT_3GPP_CONTEXT_STEP_NDISDUP) mm_base_modem_at_command_full (ctx->modem, MM_IFACE_PORT_AT (ctx->primary), diff --git a/src/plugins/iridium/mm-broadband-modem-iridium.c b/src/plugins/iridium/mm-broadband-modem-iridium.c index e9cdc4bd..7f849811 100644 --- a/src/plugins/iridium/mm-broadband-modem-iridium.c +++ b/src/plugins/iridium/mm-broadband-modem-iridium.c @@ -221,7 +221,7 @@ setup_flow_control (MMIfaceModem *self, } /*****************************************************************************/ -/* Load supported modes (Modem inteface) */ +/* Load supported modes (Modem interface) */ static GArray * load_supported_modes_finish (MMIfaceModem *self, @@ -254,7 +254,7 @@ load_supported_modes (MMIfaceModem *self, } /*****************************************************************************/ -/* Create SIM (Modem inteface) */ +/* Create SIM (Modem interface) */ static MMBaseSim * create_sim_finish (MMIfaceModem *self, diff --git a/src/plugins/mbm/mm-broadband-modem-mbm.c b/src/plugins/mbm/mm-broadband-modem-mbm.c index 15d54d9f..c6c44a7b 100644 --- a/src/plugins/mbm/mm-broadband-modem-mbm.c +++ b/src/plugins/mbm/mm-broadband-modem-mbm.c @@ -1458,7 +1458,7 @@ setup_ports (MMBroadbandModem *_self) if (!(self->priv->enabled_sources & (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW | MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED))) { - /* make sure GPS is stopped incase it was left enabled */ + /* make sure GPS is stopped in case it was left enabled */ mm_base_modem_at_command (MM_BASE_MODEM (self), "AT*E2GPSCTL=0", 3, FALSE, NULL, NULL); /* Add handler for the NMEA traces */ mm_port_serial_gps_add_trace_handler (gps_data_port, diff --git a/src/plugins/option/mm-shared-option.c b/src/plugins/option/mm-shared-option.c index 3c17e8a8..85e4c193 100644 --- a/src/plugins/option/mm-shared-option.c +++ b/src/plugins/option/mm-shared-option.c @@ -31,7 +31,7 @@ G_DEFINE_INTERFACE (MMSharedOption, mm_shared_option, MM_TYPE_IFACE_MODEM) /*****************************************************************************/ -/* Create SIM (Modem inteface) */ +/* Create SIM (Modem interface) */ MMBaseSim * mm_shared_option_create_sim_finish (MMIfaceModem *self, diff --git a/src/plugins/tests/test-port-context.c b/src/plugins/tests/test-port-context.c index e96cff7b..25f8aa23 100644 --- a/src/plugins/tests/test-port-context.c +++ b/src/plugins/tests/test-port-context.c @@ -303,7 +303,7 @@ create_socket_service (TestPortContext *self) /* And store both the service and the socket. * Since GLib 2.42 the socket may not be explicitly closed when the - * listener is diposed, so we'll do it ourselves. */ + * listener is disposed, so we'll do it ourselves. */ self->socket_service = service; self->socket = socket; diff --git a/src/plugins/thuraya/mm-broadband-modem-thuraya.c b/src/plugins/thuraya/mm-broadband-modem-thuraya.c index 710c014f..e5354010 100644 --- a/src/plugins/thuraya/mm-broadband-modem-thuraya.c +++ b/src/plugins/thuraya/mm-broadband-modem-thuraya.c @@ -87,7 +87,7 @@ load_operator_name (MMIfaceModem3gpp *self, } /*****************************************************************************/ -/* Load supported modes (Modem inteface) */ +/* Load supported modes (Modem interface) */ static GArray * load_supported_modes_finish (MMIfaceModem *self, |