diff options
author | Dan Williams <dan@ioncontrol.co> | 2025-03-12 00:52:49 +0000 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-03-12 00:52:49 +0000 |
commit | e95336d106c9678433147307f80abe8810ae59bd (patch) | |
tree | fa451fa7ccc49526d238f0ed59a6d11875d11a62 | |
parent | a19fd8588402161a8e0b7eb1a08ebf7ab17f73da (diff) | |
parent | 68933455df82b2259c1a091232ded3334c87c551 (diff) |
Merge request !1316 from 'typos'
treewide: Fix typos
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1316
44 files changed, 62 insertions, 62 deletions
@@ -229,7 +229,7 @@ The most important features and changes in this release are the following: * New udev tags: ** The 'ID_MM_REQUIRED' port-specific udev tag allows users to specify that - the modem must be able to succesfully probe and use the given control + the modem must be able to successfully probe and use the given control port. ** The 'ID_MM_MAX_MULTIPLEXED_LINKS' udev tag allows user to specify the maximum amount of multiplexed links the modem supports. This tag may be @@ -1429,7 +1429,7 @@ This version comes with the following new features: ** Implemented support for devices which only work in "raw IP" mode, like the Sierra MC7455. ** Implemented support for SIM related operations using the UIM service, as - newer modems with multi-SIM capabilities don't suppor the legacy DMS UIM + newer modems with multi-SIM capabilities don't support the legacy DMS UIM operations. ** Implemented support for detecting network-initiated disconnections. @@ -15,7 +15,7 @@ actual device (Generic AT, vendor-specific AT, QCDM, QMI, MBIM...). ## Getting Started ModemManager uses the meson build system. Meson is likely available as a -package from your Linux distrubtion, but if not please refer to the [Meson +package from your Linux distribution, but if not please refer to the [Meson project](https://mesonbuild.com/Quick-guide.html) for installation instructions. Once you have Meson installed you'll probably want to install [libmbim](https://gitlab.freedesktop.org/mobile-broadband/libmbim) and [libqmi](https://gitlab.freedesktop.org/mobile-broadband/libqmi) which most modems require. diff --git a/docs/man/mmcli.1 b/docs/man/mmcli.1 index adb0f1b5..99a8fd4f 100644 --- a/docs/man/mmcli.1 +++ b/docs/man/mmcli.1 @@ -478,7 +478,7 @@ detects it. .TP .B \-\-location\-set\-supl\-server=[IP:PORT] or \-\-location\-set\-supl\-server=[FQDN:PORT] Configure the location of the A\-GPS SUPL server, either specifying the IP -address (\fBIP:PORT\fR) or specifyng a fully qualified domain name +address (\fBIP:PORT\fR) or specifying a fully qualified domain name (\fB[FQDN:PORT]\fR). .TP .B \-\-location\-inject\-assistance\-data=[PATH] diff --git a/docs/reference/api/ModemManager-overview.xml b/docs/reference/api/ModemManager-overview.xml index 12e1adc8..2988a435 100644 --- a/docs/reference/api/ModemManager-overview.xml +++ b/docs/reference/api/ModemManager-overview.xml @@ -29,7 +29,7 @@ ModemManager is a DBus system bus activated service (meaning it's started automatically when a request arrives). It is written in C, using glib and gio. Several GInterfaces specify different features that the modems support, - including the generic MMIfaceModem3gpp and MMIfaceModemCdma which provice basic + including the generic MMIfaceModem3gpp and MMIfaceModemCdma which provide basic operations for 3GPP (GSM, UMTS, LTE) or CDMA (CDMA1x, EV-DO) modems. If a given feature is not available in the modem, the specific interface will not be exported in DBus. @@ -63,7 +63,7 @@ marked with the <emphasis>ID_MM_CANDIDATE</emphasis> tag in udev. </para> <para> - Aditionally, users of RS232-based devices may need to request additional manual + Additionally, users of RS232-based devices may need to request additional manual scans via DBus, in order to detect modems that may have been connected to RS232 to USB adapters. In this case, udev just knows about the USB adapter being connected, not about the RS232 modem connected to the adapter, if any. diff --git a/examples/sms-c/sms-c-sync.c b/examples/sms-c/sms-c-sync.c index 5a4a4a59..8de6f09e 100644 --- a/examples/sms-c/sms-c-sync.c +++ b/examples/sms-c/sms-c-sync.c @@ -127,7 +127,7 @@ int main (int argc, char **argv) * the events scheduled in the main context would never be fully released. * This is obviously not a problem in this example as it will just exit, but * it can serve as guideline for others integrating sync-only libmm-glib - * opertions in other programs. By creating an ephimeral main loop here and + * operations in other programs. By creating an ephimeral main loop here and * appending an idle task (that will be run after all the other idle tasks * that may have been already scheduled), we make sure all are processed and * removed before exiting.*/ diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index ebcb065c..3cd46381 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -39,7 +39,7 @@ * @MM_MODEM_CAPABILITY_LTE: Modem has LTE data capability. * @MM_MODEM_CAPABILITY_IRIDIUM: Modem has Iridium capabilities. * @MM_MODEM_CAPABILITY_5GNR: Modem has 5GNR capabilities. Since 1.14. - * @MM_MODEM_CAPABILITY_TDS: Modem has TDS capabilties. Since 1.20. + * @MM_MODEM_CAPABILITY_TDS: Modem has TDS capabilities. Since 1.20. * @MM_MODEM_CAPABILITY_ANY: Mask specifying all capabilities. * * Flags describing one or more of the general access technology families that a @@ -1199,7 +1199,7 @@ typedef enum { /*< underscore_name=mm_modem_contacts_storage >*/ * defined by the user of the API. * @MM_BEARER_TYPE_DEFAULT_ATTACH: The initial default bearer established * during LTE attach procedure, automatically connected as long as the device is - * regitered in the LTE network. + * registered in the LTE network. * @MM_BEARER_TYPE_DEDICATED: Secondary context (2G/3G) or dedicated bearer * (4G), defined by the user of the API. These bearers use the same IP address * used by a primary context or default bearer and provide a dedicated flow for @@ -1805,7 +1805,7 @@ typedef enum { /*< underscore_name=mm_modem_3gpp_packet_service_state >*/ /** * MMSimType: * @MM_SIM_TYPE_UNKNOWN: SIM type is not known. - * @MM_SIM_TYPE_PHYSICAL: SIM is a pysical SIM. + * @MM_SIM_TYPE_PHYSICAL: SIM is a physical SIM. * @MM_SIM_TYPE_ESIM: SIM is a ESIM. * * SIM type indicating whether ESIM or not @@ -1840,7 +1840,7 @@ typedef enum { /*< underscore_name=mm_sim_esim_status >*/ * @MM_SIM_REMOVABILITY_REMOVABLE: SIM is a removable SIM. * @MM_SIM_REMOVABILITY_NOT_REMOVABLE: SIM is not a removable SIM. * - * Respresents SIM removability of the current SIM. + * Represents SIM removability of the current SIM. * * Since: 1.20 */ diff --git a/introspection/org.freedesktop.ModemManager1.Modem.Signal.xml b/introspection/org.freedesktop.ModemManager1.Modem.Signal.xml index 213db491..300b919c 100644 --- a/introspection/org.freedesktop.ModemManager1.Modem.Signal.xml +++ b/introspection/org.freedesktop.ModemManager1.Modem.Signal.xml @@ -21,7 +21,7 @@ used. There are two different ways defined to use the interface: either enabling - peridic polling (with the Setup() method), or configuring the device with + periodic polling (with the Setup() method), or configuring the device with thresholds so that it reports the value updates automatically (with the SetupThresholds() method, since 1.20). diff --git a/libmm-glib/mm-cdma-manual-activation-properties.c b/libmm-glib/mm-cdma-manual-activation-properties.c index 94e8265f..776613d4 100644 --- a/libmm-glib/mm-cdma-manual-activation-properties.c +++ b/libmm-glib/mm-cdma-manual-activation-properties.c @@ -243,7 +243,7 @@ mm_cdma_manual_activation_properties_set_mdn (MMCdmaManualActivationProperties * * mm_cdma_manual_activation_properties_get_min: * @self: A #MMCdmaManualActivationProperties. * - * Gets the Mobile Indentification Number. + * Gets the Mobile Identification Number. * * Returns: (transfer none): The MIN. Do not free the returned value, it is * owned by @self. diff --git a/libmm-glib/mm-compat.h b/libmm-glib/mm-compat.h index 6a753bc3..14a9c86a 100644 --- a/libmm-glib/mm-compat.h +++ b/libmm-glib/mm-compat.h @@ -46,7 +46,7 @@ * * These types and methods are flagged as deprecated and therefore * shouldn't be used in newly written code. They are provided to avoid - * innecessary API/ABI breaks, for compatibility purposes only. + * unnecessary API/ABI breaks, for compatibility purposes only. */ /*****************************************************************************/ diff --git a/libmm-glib/mm-firmware-properties.c b/libmm-glib/mm-firmware-properties.c index d1edb030..a27b123f 100644 --- a/libmm-glib/mm-firmware-properties.c +++ b/libmm-glib/mm-firmware-properties.c @@ -69,7 +69,7 @@ static MMFirmwareProperties *firmware_properties_new_empty (void); * mm_firmware_properties_get_unique_id: * @self: A #MMFirmwareProperties. * - * Gets the unique ID of the firmare image. + * Gets the unique ID of the firmware image. * * Returns: (transfer none): The ID of the image. Do not free the returned * value, it is owned by @self. @@ -90,7 +90,7 @@ mm_firmware_properties_get_unique_id (MMFirmwareProperties *self) * mm_firmware_properties_get_image_type: * @self: A #MMFirmwareProperties. * - * Gets the type of the firmare image. + * Gets the type of the firmware image. * * Returns: A #MMFirmwareImageType specifying The type of the image. * diff --git a/libmm-glib/mm-modem-3gpp.c b/libmm-glib/mm-modem-3gpp.c index e86360d3..521f9483 100644 --- a/libmm-glib/mm-modem-3gpp.c +++ b/libmm-glib/mm-modem-3gpp.c @@ -1565,7 +1565,7 @@ mm_modem_3gpp_set_nr5g_registration_settings_sync (MMModem3gpp * * * Finishes an operation started with mm_modem_3gpp_set_carrier_lock(). * - * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. + * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. * Since: 1.22 */ gboolean diff --git a/libmm-glib/mm-modem-location.c b/libmm-glib/mm-modem-location.c index 71acd92b..c6d13059 100644 --- a/libmm-glib/mm-modem-location.c +++ b/libmm-glib/mm-modem-location.c @@ -411,7 +411,7 @@ mm_modem_location_inject_assistance_data_finish (MMModemLocation *self, * %NULL. * @user_data: User data to pass to @callback. * - * Aynchronously injects assistance data to the GNSS module. + * Asynchronously injects assistance data to the GNSS module. * * When the operation is finished, @callback will be invoked in the * <link linkend="g-main-context-push-thread-default">thread-default main loop</link> diff --git a/libmm-glib/mm-modem-messaging.c b/libmm-glib/mm-modem-messaging.c index 616b6ecd..903d12ff 100644 --- a/libmm-glib/mm-modem-messaging.c +++ b/libmm-glib/mm-modem-messaging.c @@ -651,7 +651,7 @@ mm_modem_messaging_delete_sync (MMModemMessaging *self, * * Finishes an operation started with mm_modem_messaging_set_default_storage(). * - * Returns: %TRUE if set default storage is sucess, %FALSE if @error is set. + * Returns: %TRUE if set default storage is success, %FALSE if @error is set. * * Since: 1.24 */ @@ -676,7 +676,7 @@ mm_modem_messaging_set_default_storage_finish (MMModemMessaging *self, * %NULL * @user_data: User data to pass to @callback. * - * Asynchronously set deafult #MMSmsStorage in the modem. + * Asynchronously set default #MMSmsStorage in the modem. * * When the operation is finished, @callback will be invoked in the * <link linkend="g-main-context-push-thread-default">thread-default main loop</link> @@ -711,12 +711,12 @@ mm_modem_messaging_set_default_storage (MMModemMessaging *self, * @cancellable: (allow-none): A #GCancellable or %NULL. * @error: Return location for error or %NULL. * - * Synchronously set deafult #MMSmsStorage in the modem. + * Synchronously set default #MMSmsStorage in the modem. * * The calling thread is blocked until a reply is received. See * mm_modem_messaging_set_default_storage() for the asynchronous version of this method. * - * Returns: %TRUE if set default storage is sucess, %FALSE if @error is set. + * Returns: %TRUE if set default storage is success, %FALSE if @error is set. * * Since: 1.24 */ diff --git a/libqcdm/src/commands.c b/libqcdm/src/commands.c index cd21281c..b78c26b7 100644 --- a/libqcdm/src/commands.c +++ b/libqcdm/src/commands.c @@ -1776,7 +1776,7 @@ static int check_log_config_respose (const char *buf, size_t len, uint32_t op) { DMCmdLogConfigRsp *rsp = (DMCmdLogConfigRsp *) buf; - size_t minlen = 16; /* minimum valid resposne */ + size_t minlen = 16; /* minimum valid response */ int err; /* Ensure size is at least enough for the command header */ 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, diff --git a/test/mmcbmmonitor.c b/test/mmcbmmonitor.c index 19e39d09..a118b410 100644 --- a/test/mmcbmmonitor.c +++ b/test/mmcbmmonitor.c @@ -196,7 +196,7 @@ int main (int argc, char **argv) g_unix_signal_add (SIGHUP, (GSourceFunc) signals_handler, NULL); g_unix_signal_add (SIGTERM, (GSourceFunc) signals_handler, NULL); - /* Setup main loop and shedule start in idle */ + /* Setup main loop and schedule start in idle */ loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); diff --git a/test/mmsmsmonitor.c b/test/mmsmsmonitor.c index de895214..8b547ecc 100644 --- a/test/mmsmsmonitor.c +++ b/test/mmsmsmonitor.c @@ -183,7 +183,7 @@ int main (int argc, char **argv) g_unix_signal_add (SIGHUP, (GSourceFunc) signals_handler, NULL); g_unix_signal_add (SIGTERM, (GSourceFunc) signals_handler, NULL); - /* Setup main loop and shedule start in idle */ + /* Setup main loop and schedule start in idle */ loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); diff --git a/test/mmtty.c b/test/mmtty.c index 26ddb0b7..db22c268 100644 --- a/test/mmtty.c +++ b/test/mmtty.c @@ -332,7 +332,7 @@ int main (int argc, char **argv) signal (SIGHUP, signals_handler); signal (SIGTERM, signals_handler); - /* Setup main loop and shedule start in idle */ + /* Setup main loop and schedule start in idle */ loop = g_main_loop_new (NULL, FALSE); g_idle_add ((GSourceFunc)start_cb, NULL); g_main_loop_run (loop); diff --git a/tools/test-modemmanager-service.py b/tools/test-modemmanager-service.py index 2ca18b9f..f4eca184 100755 --- a/tools/test-modemmanager-service.py +++ b/tools/test-modemmanager-service.py @@ -319,7 +319,7 @@ class Modem(ExportedObj): pass @dbus.service.method(dbus_interface=IFACE_MODEM, in_signature='u', out_signature='') - def SetCurrentCapabilities(self, capabilites): + def SetCurrentCapabilities(self, capabilities): pass @dbus.service.method(dbus_interface=IFACE_MODEM, in_signature='(uu)', out_signature='') |