From bab81e5e44a13275b93a3e08ace2c2b7a00bef33 Mon Sep 17 00:00:00 2001 From: Kate Hsuan Date: Tue, 7 Jan 2025 15:56:33 +0800 Subject: [PATCH] Fix spelling issues with codespell --- NEWS | 10 +++++----- dbus/org.freedesktop.UPower.Device.xml | 6 +++--- dbus/org.freedesktop.UPower.KbdBacklight.xml | 6 +++--- doc/upower-docs.xml | 2 +- etc/UPower.conf | 2 +- libupower-glib/up-client.c | 2 +- libupower-glib/up-device.c | 4 ++-- src/linux/up-device-supply-battery.c | 4 ++-- src/linux/up-device-supply.c | 2 +- src/linux/up-device-wup.c | 2 +- src/openbsd/up-backend.c | 2 +- src/up-device-battery.c | 4 ++-- src/up-device.c | 4 ++-- src/up-history.c | 2 +- src/up-main.c | 2 +- src/up-polkit.c | 2 +- src/up-self-test.c | 2 +- 17 files changed, 29 insertions(+), 29 deletions(-) diff --git a/NEWS b/NEWS index 8ed09b0..de219b2 100644 --- a/NEWS +++ b/NEWS @@ -65,7 +65,7 @@ Released: 2023-07-04 connected through Bluetooth would show as 2 batteries) - Hide duplicate Logitech wireless devices when they get connected through USB as well -- Fix Bluetooth device names not synchronising, and use user-chosen +- Fix Bluetooth device names not synchronizing, and use user-chosen names when available - Handle the "present" sysfs attribute changing - Fix iDevices not appearing @@ -631,7 +631,7 @@ Bugfixes: - Depend on stable GUdev API (Michael Biebl) - Drop devkit and devkit-power-daemon symlinks (Michael Biebl) - Fix bitmap check in the input code (Arnaud Patard) - - Honour ACLOCAL_FLAGS in Makefile.am (Richard Hughes) + - Honor ACLOCAL_FLAGS in Makefile.am (Richard Hughes) Version 0.9.8 ~~~~~~~~~~~~~ @@ -851,7 +851,7 @@ Bugfixes: - Update the list of HID UPS (Arnaud Quette) - Use a gdouble for percentage to fix on-battery reporting (Byron Clark) - Bug 24262 – incorrect battery recall warning for Lenovo T61 (Martin Pitt) - - Fix the toshiba battery recal notices by matching up the double quotes (Richard Hughes) + - Fix the toshiba battery recall notices by matching up the double quotes (Richard Hughes) - Avoid going from discharging to pending-discharge when the expansion battery is very low (Richard Hughes) - Some vendors fill the NVRAM full of junk. Don't crash the daemon if the @@ -990,7 +990,7 @@ Bugfixes: - Remove the 0x prefix from some rule matches (Ronald) - Allow all DBus properties to be read with the new DBus (Richard Hughes) - Only reset the update-time if the read was successful (Richard Hughes) - - Optimise the udev rules to skip non-usb devices (Richard Hughes) + - Optimize the udev rules to skip non-usb devices (Richard Hughes) - Ensure we get properties on devices correctly that have not yet been changed (Richard Hughes) - Make the suspend and hibernate scripts execute synchronously. Fixes rh#497563 (Richard Hughes) - Ignore method timeouts when we suspend and hibernate (Richard Hughes) @@ -1020,7 +1020,7 @@ New Features: - Get rid of internal Object and instead use the GObject property system (Richard Hughes) - Move the library directory from libdevkit-power to devkit-power-gobject (Richard Hughes) - Ship a shared library. There are now three external projects using copies of - this, which is rediculous (Richard Hughes) + this, which is ridiculous (Richard Hughes) - Require I_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE (Richard Hughes) Bugfixes: diff --git a/dbus/org.freedesktop.UPower.Device.xml b/dbus/org.freedesktop.UPower.Device.xml index 9cc1c74..dbe7067 100644 --- a/dbus/org.freedesktop.UPower.Device.xml +++ b/dbus/org.freedesktop.UPower.Device.xml @@ -148,7 +148,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 Callers will need to make sure that the daemon was started in debug mode - if an error occured while refreshing + if an error occurred while refreshing @@ -263,7 +263,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 - if an error occured while setting the battery charge limits + if an error occurred while setting the battery charge limits @@ -416,7 +416,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2 27Toy - 28Bluetooth Genreic + 28Bluetooth Generic diff --git a/dbus/org.freedesktop.UPower.KbdBacklight.xml b/dbus/org.freedesktop.UPower.KbdBacklight.xml index 6a7c2c6..e2a61e6 100644 --- a/dbus/org.freedesktop.UPower.KbdBacklight.xml +++ b/dbus/org.freedesktop.UPower.KbdBacklight.xml @@ -31,7 +31,7 @@ - if an error occured while getting the maximum brightness + if an error occurred while getting the maximum brightness @@ -52,7 +52,7 @@ - if an error occured while getting the brightness + if an error occurred while getting the brightness @@ -73,7 +73,7 @@ - if an error occured while setting the brightness + if an error occurred while setting the brightness diff --git a/doc/upower-docs.xml b/doc/upower-docs.xml index 5fa700e..c77a7a8 100644 --- a/doc/upower-docs.xml +++ b/doc/upower-docs.xml @@ -86,7 +86,7 @@ libupower-glib helpers - This part documents helper funtions in libupower-glib. + This part documents helper functions in libupower-glib. diff --git a/etc/UPower.conf b/etc/UPower.conf index 580f8f6..d3895f3 100644 --- a/etc/UPower.conf +++ b/etc/UPower.conf @@ -84,7 +84,7 @@ TimeAction=120 # Enable the risky CriticalPowerAction-Suspend # This option is not recommended, but it is here for users who # want to enable the riscky CriticalPowerAction, such as "Suspend" -# to fulfil their needs. +# to fulfill their needs. # Default is false AllowRiskyCriticalPowerAction=false diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index fac4101..528e8e7 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -615,7 +615,7 @@ up_client_new_full (GCancellable *cancellable, GError **error) * Creates a new #UpClient object. If connecting to upowerd on D-Bus fails, * this returns %NULL and prints out a warning with the error message. * Consider using up_client_new_full() instead which allows you to handle errors - * and cancelling long operations yourself. + * and canceling long operations yourself. * * Return value: a new UpClient object, or %NULL on failure. * diff --git a/libupower-glib/up-device.c b/libupower-glib/up-device.c index 86a5525..3d6a55f 100644 --- a/libupower-glib/up-device.c +++ b/libupower-glib/up-device.c @@ -971,7 +971,7 @@ up_device_class_init (UpDeviceClass *klass) /** * UpDevice:is-rechargeable: * - * If the device has a rechargable battery. + * If the device has a rechargeable battery. * * Since: 0.9.0 **/ @@ -1238,7 +1238,7 @@ up_device_class_init (UpDeviceClass *klass) /** * UpDevice:icon-name: * - * The icon name, following the Icon Naming Speficiation + * The icon name, following the Icon Naming Specification * * Since: 1.0 **/ diff --git a/src/linux/up-device-supply-battery.c b/src/linux/up-device-supply-battery.c index 85e04dc..9a76d1f 100644 --- a/src/linux/up-device-supply-battery.c +++ b/src/linux/up-device-supply-battery.c @@ -238,7 +238,7 @@ up_device_supply_battery_refresh (UpDevice *device, info.charge_control_supported = FALSE; } - /* NOTE: We used to warn about full > design, but really that is prefectly fine to happen. */ + /* NOTE: We used to warn about full > design, but really that is perfectly fine to happen. */ /* Update the battery information (will only fire events for actual changes) */ up_device_battery_update_info (battery, &info); @@ -262,7 +262,7 @@ up_device_supply_battery_refresh (UpDevice *device, * consistency (but we used to read it in the past). * * See https://bugs.freedesktop.org/show_bug.cgi?id=60104#c2 - * whichs reports energy_now of 15.05 Wh while our calculation + * which's reports energy_now of 15.05 Wh while our calculation * will be ~16.4Wh by multiplying charge with voltage). */ values.energy.rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "current_now") / 1000000.0); diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index d6524db..992bf2a 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -554,7 +554,7 @@ up_device_supply_guess_type (GUdevDevice *native, g_warning ("USB power supply %s without usb_type property, please report", native_path); } else { - g_warning ("did not recognise type %s, please report", device_type); + g_warning ("did not recognize type %s, please report", device_type); } out: diff --git a/src/linux/up-device-wup.c b/src/linux/up-device-wup.c index b4fb376..3adbaa7 100644 --- a/src/linux/up-device-wup.c +++ b/src/linux/up-device-wup.c @@ -201,7 +201,7 @@ up_device_wup_parse_command (UpDeviceWup *wup, const gchar *data) } } - /* check we have enough data inthe packet */ + /* check we have enough data in the packet */ tokens = g_strsplit (packet, ",", -1); number_tokens = g_strv_length (tokens); if (number_tokens < 3) { diff --git a/src/openbsd/up-backend.c b/src/openbsd/up-backend.c index 9e11035..d13e1dd 100644 --- a/src/openbsd/up-backend.c +++ b/src/openbsd/up-backend.c @@ -602,7 +602,7 @@ up_backend_apm_event_thread(gpointer object) } #endif return NULL; - /* shouldnt be reached ? */ + /* shouldn't be reached ? */ } /** diff --git a/src/up-device-battery.c b/src/up-device-battery.c index 65f6941..b6e04d0 100644 --- a/src/up-device-battery.c +++ b/src/up-device-battery.c @@ -199,7 +199,7 @@ up_device_battery_update_poll_frequency (UpDeviceBattery *self, * and one of the following holds true: * 1. The current stat is unknown; we hope that this is transient * and re-poll. - * 2. A change occured on a line power supply. This likely means that + * 2. A change occurred on a line power supply. This likely means that * batteries switch between charging/discharging which does not * always result in a separate uevent. * @@ -270,7 +270,7 @@ up_device_battery_report (UpDeviceBattery *self, * incorrectly multiplied by the voltage. * * Said differently, just assuming the units did *not* change should - * give us a saner value. Obviously, things will fall appart if upower + * give us a saner value. Obviously, things will fall apart if upower * is restarted and this should be fixed in the kernel or firmware. * * Unfortunately, the hardware is quite old (X201s) which makes it hard diff --git a/src/up-device.c b/src/up-device.c index dbbbc02..4ab203b 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -660,7 +660,7 @@ up_device_get_history (UpExportedDevice *skeleton, else if (g_strcmp0 (type_string, "time-empty") == 0) type = UP_HISTORY_TYPE_TIME_EMPTY; - /* something recognised */ + /* something recognized */ if (type != UP_HISTORY_TYPE_UNKNOWN) { ensure_history (device); array = up_history_get_data (priv->history, type, timespan, resolution); @@ -905,7 +905,7 @@ up_device_class_init (UpDeviceClass *klass) properties[PROP_DISCONNECTED] = g_param_spec_boolean ("disconnected", "Disconnected", - "Whethe wireless device is disconnected", + "Whether wireless device is disconnected", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_READABLE); diff --git a/src/up-history.c b/src/up-history.c index a9fa903..9f46017 100644 --- a/src/up-history.c +++ b/src/up-history.c @@ -255,7 +255,7 @@ up_history_get_data (UpHistory *history, UpHistoryType type, guint timespan, gui else if (type == UP_HISTORY_TYPE_TIME_EMPTY) array_data = history->priv->data_time_empty; - /* not recognised */ + /* not recognized */ if (array_data == NULL) return NULL; diff --git a/src/up-main.c b/src/up-main.c index dc6a7dc..f677cb5 100644 --- a/src/up-main.c +++ b/src/up-main.c @@ -284,7 +284,7 @@ main (gint argc, gchar **argv) g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb"); } - /* immediatly exit */ + /* immediately exit */ if (immediate_exit) { g_timeout_add (50, (GSourceFunc) up_main_timed_exit_cb, state); g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb"); diff --git a/src/up-polkit.c b/src/up-polkit.c index 112115e..ea05a1f 100644 --- a/src/up-polkit.c +++ b/src/up-polkit.c @@ -85,7 +85,7 @@ up_polkit_check_auth (UpPolkit *polkit, PolkitSubject *subject, const gchar *act POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION, NULL, &error_local); if (result == NULL) { - error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "failed to check authorisation: %s", error_local->message); + error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "failed to check authorization: %s", error_local->message); g_dbus_method_invocation_return_gerror (invocation, error); return FALSE; } diff --git a/src/up-self-test.c b/src/up-self-test.c index a96b46f..858e24f 100644 --- a/src/up-self-test.c +++ b/src/up-self-test.c @@ -166,7 +166,7 @@ up_test_history_func (void) ret = up_history_set_id (history, "test"); g_assert (ret); - /* get nonexistant data */ + /* get nonexistent data */ array = up_history_get_data (history, UP_HISTORY_TYPE_CHARGE, 10, 100); g_assert (array != NULL); g_assert_cmpint (array->len, ==, 0);