* [PATCH BlueZ 01/19] android: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 10:34 ` bluez.test.bot
2025-07-04 8:54 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 02/19] Fix typos in top-level project docs Bastien Nocera
` (18 subsequent siblings)
19 siblings, 2 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
android/a2dp.c | 6 +++---
android/audio-ipc-api.txt | 2 +-
android/bluetoothd.te | 2 +-
android/client/haltest.c | 4 ++--
android/client/if-bt.c | 16 ++++++++--------
android/client/if-gatt.c | 14 +++++++-------
android/client/if-hl.c | 2 +-
android/gatt.c | 8 ++++----
android/hal-audio.c | 2 +-
android/hal-ipc-api.txt | 32 ++++++++++++++++----------------
android/handsfree-client.c | 8 ++++----
android/hardware/audio_effect.h | 4 ++--
android/hardware/bluetooth.h | 2 +-
android/hardware/bt_hf.h | 2 +-
android/hardware/bt_hh.h | 8 ++++----
android/hardware/bt_rc.h | 6 +++---
android/hardware/hardware.h | 4 ++--
android/health.c | 4 ++--
android/hidhost.c | 6 +++---
android/pics-avctp.txt | 2 +-
android/pics-avrcp.txt | 2 +-
android/pics-gap.txt | 2 +-
android/pics-opp.txt | 4 ++--
android/pts-gatt.txt | 2 +-
android/system-emulator.c | 2 +-
android/system/audio.h | 4 ++--
android/tester-gatt.c | 2 +-
android/tester-hidhost.c | 2 +-
android/tester-main.c | 8 ++++----
29 files changed, 81 insertions(+), 81 deletions(-)
diff --git a/android/a2dp.c b/android/a2dp.c
index ee607a32dabe..8d0e4d62e10c 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -295,13 +295,13 @@ static int sbc_check_config(void *caps, uint8_t caps_len, void *conf,
}
if (config->max_bitpool < cap->min_bitpool) {
- error("SBC: Invalid maximun bitpool (%u < %u)",
+ error("SBC: Invalid maximum bitpool (%u < %u)",
config->max_bitpool, cap->min_bitpool);
return -EINVAL;
}
if (config->min_bitpool > cap->max_bitpool) {
- error("SBC: Invalid minimun bitpool (%u > %u)",
+ error("SBC: Invalid minimum bitpool (%u > %u)",
config->min_bitpool, cap->min_bitpool);
return -EINVAL;
}
@@ -375,7 +375,7 @@ static int aptx_check_config(void *caps, uint8_t caps_len, void *conf,
config = conf;
if (!(cap->frequency & config->frequency)) {
- error("APTX: Unsupported frequenct (%u) by endpoint",
+ error("APTX: Unsupported frequency (%u) by endpoint",
config->frequency);
return -EINVAL;
}
diff --git a/android/audio-ipc-api.txt b/android/audio-ipc-api.txt
index f4a497dd8d5b..ba4d1c1c86d0 100644
--- a/android/audio-ipc-api.txt
+++ b/android/audio-ipc-api.txt
@@ -46,7 +46,7 @@ Audio Service (ID 0)
Response parameters: Status (1 octet)
- Opcode 0x01 - Open Audio Endpoint commmand
+ Opcode 0x01 - Open Audio Endpoint command
Command parameters: Service UUID (16 octets)
Codec ID (1 octet)
diff --git a/android/bluetoothd.te b/android/bluetoothd.te
index 532bfbb353ae..1ac719b62161 100644
--- a/android/bluetoothd.te
+++ b/android/bluetoothd.te
@@ -12,7 +12,7 @@ allow bluetoothd bluetooth_data_file:notdevfile_class_set create_file_perms;
allow bluetoothd self:capability { setuid net_admin net_bind_service net_raw };
allow bluetoothd kernel:system module_request;
-# TODO: this may be romoved for userbuild where we don't use bluetoothd_wrapper
+# TODO: this may be removed for userbuild where we don't use bluetoothd_wrapper
allow bluetoothd bluetoothd_main_exec:file { execute execute_no_trans read open };
# IPC socket communication
diff --git a/android/client/haltest.c b/android/client/haltest.c
index cb5f68833fe8..f1b3f7261c81 100644
--- a/android/client/haltest.c
+++ b/android/client/haltest.c
@@ -145,7 +145,7 @@ static void help_p(int argc, const char **argv)
}
terminal_print("\nTo get help on methods for each interface type:\n");
- terminal_print("\n\thelp <inerface>\n");
+ terminal_print("\n\thelp <interface>\n");
terminal_print("\nBasic scenario:\n\tbluetooth init\n");
terminal_print("\tbluetooth enable\n\tbluetooth start_discovery\n");
terminal_print("\tbluetooth get_profile_interface handsfree\n");
@@ -217,7 +217,7 @@ static struct method commands[] = {
END_METHOD
};
-/* Gets comman by name */
+/* Gets command by name */
struct method *get_command(const char *name)
{
return get_method(commands, name);
diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 68001a15132e..978834ebefc4 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
@@ -65,7 +65,7 @@ static void dump_properties(int num_properties, bt_property_t *properties)
for (i = 0; i < num_properties; i++) {
/*
- * properities sometimes come unaligned hence memcp to
+ * properties sometimes come unaligned hence memcp to
* aligned buffer
*/
bt_property_t prop;
@@ -152,7 +152,7 @@ static void add_remote_device_from_props(int num_properties,
for (i = 0; i < num_properties; i++) {
/*
- * properities sometimes come unaligned hence memcp to
+ * properties sometimes come unaligned hence memcp to
* aligned buffer
*/
bt_property_t property;
@@ -216,7 +216,7 @@ static void discovery_state_changed_cb(bt_discovery_state_t state)
}
/*
- * Buffer for remote addres that came from one of bind request.
+ * Buffer for remote address that came from one of bind request.
* It's stored for command completion.
*/
static char last_remote_addr[MAX_ADDR_STR_LEN];
@@ -595,7 +595,7 @@ static void complete_addr_c(int argc, const char **argv, enum_func *enum_func,
}
}
-/* Just addres to complete, use complete_addr_c */
+/* Just address to complete, use complete_addr_c */
#define get_remote_device_properties_c complete_addr_c
static void get_remote_device_properties_p(int argc, const char **argv)
@@ -696,7 +696,7 @@ static void get_remote_service_record_p(int argc, const char **argv)
EXEC(if_bluetooth->get_remote_service_record, &addr, &uuid);
}
-/* Just addres to complete, use complete_addr_c */
+/* Just address to complete, use complete_addr_c */
#define get_remote_services_c complete_addr_c
static void get_remote_services_p(int argc, const char **argv)
@@ -723,7 +723,7 @@ static void cancel_discovery_p(int argc, const char **argv)
EXEC(if_bluetooth->cancel_discovery);
}
-/* Just addres to complete, use complete_addr_c */
+/* Just address to complete, use complete_addr_c */
#define create_bond_c complete_addr_c
static void create_bond_p(int argc, const char **argv)
@@ -748,7 +748,7 @@ static void create_bond_p(int argc, const char **argv)
#endif
}
-/* Just addres to complete, use complete_addr_c */
+/* Just address to complete, use complete_addr_c */
#define remove_bond_c complete_addr_c
static void remove_bond_p(int argc, const char **argv)
@@ -761,7 +761,7 @@ static void remove_bond_p(int argc, const char **argv)
EXEC(if_bluetooth->remove_bond, &addr);
}
-/* Just addres to complete, use complete_addr_c */
+/* Just address to complete, use complete_addr_c */
#define cancel_bond_c complete_addr_c
static void cancel_bond_p(int argc, const char **argv)
diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
index d00afffcb5ce..89a48171cf09 100644
--- a/android/client/if-gatt.c
+++ b/android/client/if-gatt.c
@@ -89,7 +89,7 @@ const btgatt_interface_t *if_gatt = NULL;
"No min interval specified\n")
#define VERIFY_MAX_INTERVAL(n, v) VERIFY_INT_ARG(n, v, \
"No max interval specified\n")
-#define VERIFY_APPEARANCE(n, v) VERIFY_INT_ARG(n, v, "No apperance specified\n")
+#define VERIFY_APPEARANCE(n, v) VERIFY_INT_ARG(n, v, "No appearance specified\n")
#define VERIFY_MANUFACTURER_LEN(n, v) VERIFY_INT_ARG(n, v, \
"No manufacturer len specified\n")
#define VERIFY_SERVICE_DATA_LEN(n, v) VERIFY_INT_ARG(n, v, \
@@ -311,7 +311,7 @@ static void gatt_str2bt_uuid_t(const char *str, int len, bt_uuid_t *uuid)
}
}
-/* char_id formating function */
+/* char_id formatting function */
static char *btgatt_gatt_id_t2str(const btgatt_gatt_id_t *char_id, char *buf)
{
char uuid_buf[MAX_UUID_STR_LEN];
@@ -346,7 +346,7 @@ static void str2btgatt_gatt_id_t(const char *buf, btgatt_gatt_id_t *char_id)
}
}
-/* service_id formating function */
+/* service_id formatting function */
static char *btgatt_srvc_id_t2str(const btgatt_srvc_id_t *srvc_id, char *buf)
{
char uuid_buf[MAX_UUID_STR_LEN];
@@ -653,7 +653,7 @@ static void gattc_read_remote_rssi_cb(int client_if, bt_bdaddr_t *bda, int rssi,
{
char buf[MAX_ADDR_STR_LEN];
- haltest_info("%s: client_if=%d bda=%s rssi=%d satus=%d\n", __func__,
+ haltest_info("%s: client_if=%d bda=%s rssi=%d status=%d\n", __func__,
client_if, bt_bdaddr_t2str(bda, buf), rssi, status);
}
@@ -1413,7 +1413,7 @@ static void write_characteristic_c(int argc, const char **argv,
enum_func *enum_func, void **user)
{
/*
- * This should be from tGATT_WRITE_TYPE but it's burried
+ * This should be from tGATT_WRITE_TYPE but it's buried
* inside bluedroid guts
*/
static const char *wrtypes[] = { "1", "2", "3", NULL };
@@ -1492,7 +1492,7 @@ static void write_descriptor_c(int argc, const char **argv,
enum_func *enum_func, void **user)
{
/*
- * This should be from tGATT_WRITE_TYPE but it's burried
+ * This should be from tGATT_WRITE_TYPE but it's buried
* inside bluedroid guts
*/
static const char *wrtypes[] = { "1", "2", "3", NULL };
@@ -2646,7 +2646,7 @@ static struct method server_methods[] = {
GATTS_METHODCH(add_included_service,
"<server_if> <service_handle> <included_handle>"),
GATTS_METHODCH(add_characteristic,
- "<server_if> <service_handle> <uuid> <properites> <permissions>"),
+ "<server_if> <service_handle> <uuid> <properties> <permissions>"),
GATTS_METHODCH(add_descriptor,
"<server_if> <service_handle> <uuid> <permissions>"),
GATTS_METHODCH(start_service,
diff --git a/android/client/if-hl.c b/android/client/if-hl.c
index 826c81750478..90a4a1fab4a7 100644
--- a/android/client/if-hl.c
+++ b/android/client/if-hl.c
@@ -173,7 +173,7 @@ static void register_application_p(int argc, const char **argv)
memset(®, 0, sizeof(reg));
if (argc != ((atoi(argv[6]) * 4) + 7)) {
- haltest_error("mdep cfg argumetns are not proper\n");
+ haltest_error("mdep cfg arguments are not proper\n");
return;
}
diff --git a/android/gatt.c b/android/gatt.c
index 89fcdb114429..aba88fcf8c87 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -3500,7 +3500,7 @@ static void handle_client_write_descriptor(const void *buf, uint16_t len)
DBG("");
if (len != sizeof(*cmd) + cmd->len) {
- error("Invalid write desriptor command (%u bytes), terminating",
+ error("Invalid write descriptor command (%u bytes), terminating",
len);
raise(SIGTERM);
return;
@@ -4742,7 +4742,7 @@ static void read_cb(struct gatt_db_attribute *attrib, unsigned int id,
app = find_app_by_id(app_id);
if (!app) {
- error("gatt: read_cb, cound not found app id");
+ error("gatt: read_cb, could not found app id");
goto failed;
}
@@ -4753,7 +4753,7 @@ static void read_cb(struct gatt_db_attribute *attrib, unsigned int id,
conn = find_conn(&bdaddr, app->id);
if (!conn) {
- error("gatt: read_cb, cound not found connection");
+ error("gatt: read_cb, could not found connection");
goto failed;
}
@@ -6433,7 +6433,7 @@ static void write_confirm(struct gatt_db_attribute *attrib,
if (!err)
return;
- error("Error writting attribute %p", attrib);
+ error("Error writing attribute %p", attrib);
}
static void write_cmd_request(const uint8_t *cmd, uint16_t cmd_len,
diff --git a/android/hal-audio.c b/android/hal-audio.c
index f3d9b40a62fe..f9169bf289db 100644
--- a/android/hal-audio.c
+++ b/android/hal-audio.c
@@ -500,7 +500,7 @@ static bool open_endpoint(struct audio_endpoint **epp,
}
if (!ep) {
- error("Cound not find opened endpoint");
+ error("Could not find opened endpoint");
goto failed;
}
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index e3b7798b3d26..3c41e9871db6 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1162,7 +1162,7 @@ Commands and responses:
Data type (2 octets)
Channel type (1 octet)
MDEP description length (2 octets)
- MDEP description (MDEP desciption length)
+ MDEP description (MDEP description length)
Response parameters: <none>
In case of an error, the error response will be returned.
@@ -1827,7 +1827,7 @@ Commands and responses:
Transaction ID (4 octets)
Handle (2 octets)
Offset (2 octets)
- Auth Request (1 octect)
+ Auth Request (1 octet)
Status (4 octets)
GATT Response (4 octets)
Response parameters: <none>
@@ -2352,14 +2352,14 @@ Commands and response:
Opcode 0x00 - Error response
- Opcode 0x01 - Connect command/respose
+ Opcode 0x01 - Connect command/response
- Command parameters: Remote address (6 octects)
+ Command parameters: Remote address (6 octets)
Response parameters: <none>
In case of an error, the error response will be returned.
- Opcode 0x02 - Disonnect command/response
+ Opcode 0x02 - Disconnect command/response
Command parameters: Remote address (6 octetcs)
Response parameters: <none>
@@ -2440,7 +2440,7 @@ Commands and response:
In case of an error, the error response will be returned.
- Opcode 0x11 - Query Current Calls commad/response
+ Opcode 0x11 - Query Current Calls command/response
Command parameters: <none>
Response parameters: <none>
@@ -2512,7 +2512,7 @@ Notifications:
1 Release active calls and accept other call
2 Release specified active call only
3 Place all active calls on hold and accept other call
- 4 Request private mode with secified call
+ 4 Request private mode with specified call
5 Add a held call to the multiparty
6 Connect two calls and leave multiparty
7-31 Reserved for future use
@@ -2563,7 +2563,7 @@ Notifications:
Notification parameters: Name (string)
- Opcode 0x89 - Call Indicatior notification
+ Opcode 0x89 - Call Indicator notification
Notification parameters: Call (1 octet)
@@ -2587,7 +2587,7 @@ Notifications:
0x01 = Hold and Active
0x02 = Hold
- Opcode 0x8c - Resposne and Hold Status notification
+ Opcode 0x8c - Response and Hold Status notification
Notification parameters: Status (1 octet)
@@ -2617,13 +2617,13 @@ Notifications:
Valid Direction values: 0x00 = Outgoing
0x01 = Incoming
- Valid Call Sate values: 0x00 = Active
- 0x01 = Held
- 0x02 = Dialing
- 0x03 = Alerting
- 0x04 = Incoming
- 0x05 = Waiting
- 0x06 = Call held by Response and Hold
+ Valid Call State values: 0x00 = Active
+ 0x01 = Held
+ 0x02 = Dialing
+ 0x03 = Alerting
+ 0x04 = Incoming
+ 0x05 = Waiting
+ 0x06 = Call held by Response and Hold
Valid Multiparty values: 0x00 = Single Call
0x01 = Multiparty (conference) Call
diff --git a/android/handsfree-client.c b/android/handsfree-client.c
index c8f9e690eaa7..31be27fc3247 100644
--- a/android/handsfree-client.c
+++ b/android/handsfree-client.c
@@ -1308,7 +1308,7 @@ static void slc_cind_status_resp(enum hfp_result result,
/* Continue with SLC creation */
if (!hfp_hf_send_command(dev->hf, slc_cmer_resp, dev,
"AT+CMER=3,0,0,1")) {
- error("hf-client: Counld not send AT+CMER");
+ error("hf-client: Could not send AT+CMER");
goto failed;
}
@@ -1335,13 +1335,13 @@ static void slc_cind_resp(enum hfp_result result, enum hfp_error cme_err,
/* Continue with SLC creation */
if (!hfp_hf_register(dev->hf, slc_cind_status_cb, "+CIND", dev,
NULL)) {
- error("hf-client: Counld not register +CIND");
+ error("hf-client: Could not register +CIND");
goto failed;
}
if (!hfp_hf_send_command(dev->hf, slc_cind_status_resp, dev,
"AT+CIND?")) {
- error("hf-client: Counld not send AT+CIND?");
+ error("hf-client: Could not send AT+CIND?");
goto failed;
}
@@ -1886,7 +1886,7 @@ static void confirm_cb(GIOChannel *chan, gpointer data)
}
if (dev->state != HAL_HF_CLIENT_CONN_STATE_DISCONNECTED) {
- /* TODO: Handle colision */
+ /* TODO: Handle collision */
error("hf-client: Connections is up or ongoing ?");
goto drop;
}
diff --git a/android/hardware/audio_effect.h b/android/hardware/audio_effect.h
index 2c63f1ccf4ca..1f9b5463376a 100644
--- a/android/hardware/audio_effect.h
+++ b/android/hardware/audio_effect.h
@@ -63,7 +63,7 @@ typedef struct effect_descriptor_s {
uint16_t cpuLoad; // CPU load indication (see below)
uint16_t memoryUsage; // Data Memory usage (see below)
char name[EFFECT_STRING_LEN_MAX]; // human readable effect name
- char implementor[EFFECT_STRING_LEN_MAX]; // human readable effect implementor name
+ char implementor[EFFECT_STRING_LEN_MAX]; // human readable effect implementer name
} effect_descriptor_t;
// CPU load and memory usage indication: each effect implementation must provide an indication of
@@ -911,7 +911,7 @@ typedef struct audio_effect_library_s {
uint32_t version;
// Name of this library
const char *name;
- // Author/owner/implementor of the library
+ // Author/owner/implementer of the library
const char *implementor;
////////////////////////////////////////////////////////////////////////////////
diff --git a/android/hardware/bluetooth.h b/android/hardware/bluetooth.h
index 21253e00ab91..0808a11fc053 100644
--- a/android/hardware/bluetooth.h
+++ b/android/hardware/bluetooth.h
@@ -420,7 +420,7 @@ typedef struct {
size_t size;
/**
* Opens the interface and provides the callback routines
- * to the implemenation of this interface.
+ * to the implementation of this interface.
*/
int (*init)(bt_callbacks_t* callbacks );
diff --git a/android/hardware/bt_hf.h b/android/hardware/bt_hf.h
index c3f952415c25..6cc37ed89128 100644
--- a/android/hardware/bt_hf.h
+++ b/android/hardware/bt_hf.h
@@ -282,7 +282,7 @@ typedef struct {
/** Closes the interface. */
void (*cleanup)( void );
- /** configureation for the SCO codec */
+ /** configuration for the SCO codec */
bt_status_t (*configure_wbs)( bt_bdaddr_t *bd_addr ,bthf_wbs_config_t config );
} bthf_interface_t;
diff --git a/android/hardware/bt_hh.h b/android/hardware/bt_hh.h
index 2dd61beacaf2..51bb75ae5c6f 100644
--- a/android/hardware/bt_hh.h
+++ b/android/hardware/bt_hh.h
@@ -34,7 +34,7 @@ typedef enum
BTHH_HS_HID_NOT_READY, /* handshake error : device not ready */
BTHH_HS_INVALID_RPT_ID, /* handshake error : invalid report ID */
BTHH_HS_TRANS_NOT_SPT, /* handshake error : transaction not spt */
- BTHH_HS_INVALID_PARAM, /* handshake error : invalid paremter */
+ BTHH_HS_INVALID_PARAM, /* handshake error : invalid parameter */
BTHH_HS_ERROR, /* handshake error : unspecified HS error */
BTHH_ERR, /* general BTA HH error */
BTHH_ERR_SDP, /* SDP error */
@@ -79,8 +79,8 @@ typedef struct
*/
typedef void (* bthh_connection_state_callback)(bt_bdaddr_t *bd_addr, bthh_connection_state_t state);
-/** Callback for vitual unplug api.
- * the status of the vitual unplug
+/** Callback for virtual unplug api.
+ * the status of the virtual unplug
*/
typedef void (* bthh_virtual_unplug_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status);
@@ -100,7 +100,7 @@ typedef void (* bthh_idle_time_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_
/** Callback for get report api.
- * if staus is ok rpt_data contains the report data
+ * if status is ok rpt_data contains the report data
*/
typedef void (* bthh_get_report_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status, uint8_t* rpt_data, int rpt_size);
diff --git a/android/hardware/bt_rc.h b/android/hardware/bt_rc.h
index c1290aeb1f59..1b34fa734519 100644
--- a/android/hardware/bt_rc.h
+++ b/android/hardware/bt_rc.h
@@ -111,7 +111,7 @@ typedef struct {
uint8_t text[BTRC_MAX_ATTR_STR_LEN];
} btrc_element_attr_val_t;
-/** Callback for the controller's supported feautres */
+/** Callback for the controller's supported features */
typedef void (* btrc_remote_features_callback)(bt_bdaddr_t *bd_addr,
btrc_remote_features_t features);
@@ -189,7 +189,7 @@ typedef struct {
*/
bt_status_t (*init)( btrc_callbacks_t* callbacks );
- /** Respose to GetPlayStatus request. Contains the current
+ /** Response to GetPlayStatus request. Contains the current
** 1. Play status
** 2. Song duration/length
** 3. Song position
@@ -243,7 +243,7 @@ typedef struct {
/**Send current volume setting to remote side. Support limited to SetAbsoluteVolume
** This can be enhanced to support Relative Volume (AVRCP 1.0).
** With RelateVolume, we will send VOLUME_UP/VOLUME_DOWN opposed to absolute volume level
- ** volume: Should be in the range 0-127. bit7 is reseved and cannot be set
+ ** volume: Should be in the range 0-127. bit7 is reserved and cannot be set
*/
bt_status_t (*set_volume)(uint8_t volume);
diff --git a/android/hardware/hardware.h b/android/hardware/hardware.h
index 74470a31a41e..dc55b73b3264 100644
--- a/android/hardware/hardware.h
+++ b/android/hardware/hardware.h
@@ -44,7 +44,7 @@ __BEGIN_DECLS
#define HARDWARE_HAL_API_VERSION HARDWARE_MAKE_API_VERSION(1, 0)
/*
- * Helper macros for module implementors.
+ * Helper macros for module implementers.
*
* The derived modules should provide convenience macros for supported
* versions so that implementations can explicitly specify module/device
@@ -122,7 +122,7 @@ typedef struct hw_module_t {
/** Name of this module */
const char *name;
- /** Author/owner/implementor of the module */
+ /** Author/owner/implementer of the module */
const char *author;
/** Modules methods */
diff --git a/android/health.c b/android/health.c
index 9a29964b1be2..39cf3748e36a 100644
--- a/android/health.c
+++ b/android/health.c
@@ -948,7 +948,7 @@ static void bt_health_mdep_cfg_data(const void *buf, uint16_t len)
* register with different role and different configurations.
* 1) Does device supports SOURCE and SINK at the same time ?
* 2) Does it require different SDP records or one record with
- * multile MDEP configurations ?
+ * multiple MDEP configurations ?
*/
if (update_sdp_record(app) < 0) {
error("health: HDP SDP record preparation failed");
@@ -1221,7 +1221,7 @@ static void mcap_mdl_deleted_cb(struct mcap_mdl *mdl, void *data)
static void mcap_mdl_aborted_cb(struct mcap_mdl *mdl, void *data)
{
- DBG("Not Implemeneted");
+ DBG("Not Implemented");
}
static struct health_device *create_device(struct health_app *app,
diff --git a/android/hidhost.c b/android/hidhost.c
index 598bec326ca8..2e88f8c7292e 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -357,7 +357,7 @@ static void bt_hid_notify_get_report(struct hid_device *dev, uint8_t *buf,
}
/*
- * Report porotocol mode reply contains id after hdr, in boot
+ * Report protocol mode reply contains id after hdr, in boot
* protocol mode id doesn't exist
*/
ev_len += (dev->boot_dev) ? (len - 1) : (len - 2);
@@ -366,7 +366,7 @@ static void bt_hid_notify_get_report(struct hid_device *dev, uint8_t *buf,
bdaddr2android(&dev->dst, ev->bdaddr);
/*
- * Report porotocol mode reply contains id after hdr, in boot
+ * Report protocol mode reply contains id after hdr, in boot
* protocol mode id doesn't exist
*/
if (dev->boot_dev) {
@@ -1043,7 +1043,7 @@ static void bt_hid_info(const void *buf, uint16_t len)
}
/*
- * Data from hal_cmd_hidhost_set_info is usefull only when we create
+ * Data from hal_cmd_hidhost_set_info is useful only when we create
* UHID device. Once device is created all the transactions will be
* done through the fd. There is no way to use this information
* once device is created with HID internals.
diff --git a/android/pics-avctp.txt b/android/pics-avctp.txt
index 34479623c9f0..1262feed8422 100644
--- a/android/pics-avctp.txt
+++ b/android/pics-avctp.txt
@@ -41,7 +41,7 @@ TSPC_AVCTP_2_2 True Transaction label management (M)
TSPC_AVCTP_2_3 True Packet type field management (M)
TSPC_AVCTP_2_4 True Message type field management (M)
TSPC_AVCTP_2_5 True PID field management (M)
-TSPC_AVCTP_2_6 True IPID field mangement (M)
+TSPC_AVCTP_2_6 True IPID field management (M)
TSPC_AVCTP_2_7 True Message information management (M)
TSPC_AVCTP_2_8 False Event registration for message reception (O)
TSPC_AVCTP_2_9 False Event registration for connection request (O)
diff --git a/android/pics-avrcp.txt b/android/pics-avrcp.txt
index 7bd68fa77213..f6ab74d88c32 100644
--- a/android/pics-avrcp.txt
+++ b/android/pics-avrcp.txt
@@ -617,7 +617,7 @@ TSPC_AVRCP_11_24 False TG: category 4 - Operation id: 9 (O)
TSPC_AVRCP_11_25 False TG: category 4 - Operation id: dot (O)
TSPC_AVRCP_11_26 False TG: category 4 - Operation id: enter (O)
TSPC_AVRCP_11_27 False TG: category 4 - Operation id: clear (O)
-TSPC_AVRCP_11_28 False TG: category 4 - Operation id: disply (O)
+TSPC_AVRCP_11_28 False TG: category 4 - Operation id: display (O)
TSPC_AVRCP_11_29 False TG: category 4 - Operation id: help (O)
TSPC_AVRCP_11_30 False TG: category 4 - Operation id: page up (O)
TSPC_AVRCP_11_31 False TG: category 4 - Operation id: page down (O)
diff --git a/android/pics-gap.txt b/android/pics-gap.txt
index 37759955f8a4..a96984a4873d 100644
--- a/android/pics-gap.txt
+++ b/android/pics-gap.txt
@@ -101,7 +101,7 @@ C.2: Excluded if TSPC_GAP_2_7 is supported, otherwise Optional.
C.5: Mandatory If (TSPC_GAP_2_5 or TSPC_GAP_2_6 or TSPC_GAP_2_7) is supported,
otherwise Optional.
C.4: Mandatory if (Core Spec 2.1 or later) is supported, otherwise Excluded.
-Note 2. If a Core 2.0 and earlier design claims to support secure communcation
+Note 2. If a Core 2.0 and earlier design claims to support secure communication
it should support either Security mode 2 or 3.
Note 3. A Core 2.1 or later device shall always support secure communication
in Security Mode 4, and shall use that mode to connect with another
diff --git a/android/pics-opp.txt b/android/pics-opp.txt
index 145198d487fa..846d6f68fc00 100644
--- a/android/pics-opp.txt
+++ b/android/pics-opp.txt
@@ -75,7 +75,7 @@ TSPC_OPP_2_14 False Client: vCard 2.1 (C.1)
TSPC_OPP_2_15 False Client: Exchange business card (O)
TSPC_OPP_2_16 False Client: vCard 2.1 (C.2)
TSPC_OPP_2_17 False GOEP v2 (C.9)
-TSPC_OPP_2_18 False GOEP v2 Backward Compability (C.9)
+TSPC_OPP_2_18 False GOEP v2 Backward Compatibility (C.9)
TSPC_OPP_2_19 False OBEX over L2CAP (C.9)
TSPC_OPP_2_20 False OBEX Reliable Session (C.10)
TSPC_OPP_2_21 False OBEX SRM (C.10)
@@ -147,7 +147,7 @@ TSPC_OPP_3_16 False Server: Business card exchange (O.2)
TSPC_OPP_3_17 False Server: vCard 2.1 (C.2)
TSPC_OPP_3_18 False Server: Business card exchange reject. (O)
TSPC_OPP_3_19 False GOEP v2 (C.5)
-TSPC_OPP_3_20 False GOEP v2 Backward Compability (C.5)
+TSPC_OPP_3_20 False GOEP v2 Backward Compatibility (C.5)
TSPC_OPP_3_21 False OBEX over L2CAP (C.5)
TSPC_OPP_3_22 False OBEX Reliable Session (C.16)
TSPC_OPP_3_23 False OBEX SRM (C.6)
diff --git a/android/pts-gatt.txt b/android/pts-gatt.txt
index 3531ccae9e7c..04c7ebe721ae 100644
--- a/android/pts-gatt.txt
+++ b/android/pts-gatt.txt
@@ -925,7 +925,7 @@ TC_GAW_SR_BV_01_C PASS haltest:
TC_GAW_SR_BV_02_C PASS haltest:
gatts add service
gatts add_characteristics:
- <properties> 66 <permisions> 145
+ <properties> 66 <permissions> 145
gatts start_service
gattc listen
gatts send_response: (twice)
diff --git a/android/system-emulator.c b/android/system-emulator.c
index 50bb088d3188..48423b842d5e 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -137,7 +137,7 @@ static void snoop_start(void)
static void snoop_stop(void)
{
- printf("Stoping %s/%s\n", exec_dir, "bluetoothd-snoop");
+ printf("Stopping %s/%s\n", exec_dir, "bluetoothd-snoop");
kill(snoop_pid, SIGTERM);
}
diff --git a/android/system/audio.h b/android/system/audio.h
index 0c5af5e8404a..337866264f99 100644
--- a/android/system/audio.h
+++ b/android/system/audio.h
@@ -224,8 +224,8 @@ typedef enum {
* The main format indicates the main codec type. The sub format field
* indicates options and parameters for each format. The sub format is mainly
* used for record to indicate for instance the requested bitrate or profile.
- * It can also be used for certain formats to give informations not present in
- * the encoded audio stream (e.g. octet alignement for AMR).
+ * It can also be used for certain formats to give information not present in
+ * the encoded audio stream (e.g. octet alignment for AMR).
*/
typedef enum {
AUDIO_FORMAT_INVALID = 0xFFFFFFFFUL,
diff --git a/android/tester-gatt.c b/android/tester-gatt.c
index 30db7684d66e..42006bbc003a 100644
--- a/android/tester-gatt.c
+++ b/android/tester-gatt.c
@@ -3582,7 +3582,7 @@ static struct test_case test_cases[] = {
ACTION_SUCCESS(bluetooth_disable_action, NULL),
CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_OFF),
),
- /* This tests embeded ccc */
+ /* This tests embedded ccc */
TEST_CASE_BREDRLE("Gatt Server - Srvc change write req. success",
ACTION_SUCCESS(bluetooth_enable_action, NULL),
CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED, BT_STATE_ON),
diff --git a/android/tester-hidhost.c b/android/tester-hidhost.c
index f9daf559067a..53a5d778775c 100644
--- a/android/tester-hidhost.c
+++ b/android/tester-hidhost.c
@@ -241,7 +241,7 @@ static void hid_ctrl_cid_hook_cb(const void *data, uint16_t len,
hid_prepare_reply_report(cid_data);
break;
/*
- * HID device doesnot reply for this commads, so reaching pdu's
+ * HID device doesn't reply for this commands, so reaching pdu's
* to hid device means assuming test passed
*/
case HID_SET_INPUT_REPORT:
diff --git a/android/tester-main.c b/android/tester-main.c
index 361c519ef5a3..6e635b77d3e9 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -498,20 +498,20 @@ static bool match_mas_inst(btmce_mas_instance_t *exp_inst,
btmce_mas_instance_t *rec_inst, int inst_num)
{
if (exp_inst->id && (exp_inst->id != rec_inst->id)) {
- tester_debug("MAS inst. [%d] id missmatch %d vs %d", inst_num,
+ tester_debug("MAS inst. [%d] id mismatch %d vs %d", inst_num,
rec_inst->id, exp_inst->id);
return 0;
}
if (exp_inst->scn && (exp_inst->scn != rec_inst->scn)) {
- tester_debug("MAS inst. [%d] scn missmatch %d vs %d", inst_num,
+ tester_debug("MAS inst. [%d] scn mismatch %d vs %d", inst_num,
rec_inst->scn, exp_inst->scn);
return 0;
}
if (exp_inst->msg_types &&
(exp_inst->msg_types != rec_inst->msg_types)) {
- tester_debug("Mas inst. [%d] mesg type missmatch %d vs %d",
+ tester_debug("Mas inst. [%d] mesg type mismatch %d vs %d",
inst_num, rec_inst->scn, exp_inst->scn);
return 0;
}
@@ -614,7 +614,7 @@ static bool match_data(struct step *step)
exp = queue_peek_head(data->steps);
if (!exp) {
- /* Can occure while test passed already */
+ /* Can occur while test passed already */
tester_debug("Cannot get step to match");
return false;
}
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* RE: Fix typos
2025-07-03 8:53 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
@ 2025-07-03 10:34 ` bluez.test.bot
2025-07-04 8:54 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
1 sibling, 0 replies; 23+ messages in thread
From: bluez.test.bot @ 2025-07-03 10:34 UTC (permalink / raw)
To: linux-bluetooth, hadess
[-- Attachment #1: Type: text/plain, Size: 4125 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=978522
---Test result---
Test Summary:
CheckPatch PENDING 0.30 seconds
GitLint PENDING 0.28 seconds
BuildEll PASS 20.46 seconds
BluezMake PASS 2789.69 seconds
MakeCheck PASS 20.76 seconds
MakeDistcheck PASS 203.01 seconds
CheckValgrind PASS 280.92 seconds
CheckSmatch WARNING 311.11 seconds
bluezmakeextell PASS 131.11 seconds
IncrementalBuild PENDING 0.30 seconds
ScanBuild PASS 935.69 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:
emulator/btdev.c:456:29: warning: Variable length array is used.mesh/mesh-io-mgmt.c:524:67: warning: Variable length array is used.monitor/att.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/l2cap.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/msft.c: note: in included file:monitor/msft.h:88:44: warning: array of flexible structuresmonitor/packet.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/packet.c:1918:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3822:52: warning: array of flexible structuresmonitor/bt.h:3810:40: warning: array of flexible structuressrc/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:317:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/crypto.c:271:21: warning: Variable length array is used.src/shared/crypto.c:272:23: warning: Variable length array is used.src/shared/crypto.c:271:21: warning: Variable length array is used.src/shared/crypto.c:272:23: warning: Variable length array is used.src/shared/crypto.c:271:21: warning: Variable length array is used.src/shared/crypto.c:272:23: warning: Variable length array is used.src/shared/gatt-server.c:278:25: warning: Variable length array is used.src/shared/gatt-server.c:618:25: warning: Variable length array is used.src/shared/gatt-server.c:716:25: warning: Variable length array is used.src/shared/gatt-server.c:278:25: warning: Variable length array is used.src/shared/gatt-server.c:618:25: warning: Variable length array is used.src/shared/gatt-server.c:716:25: warning: Variable length array is used.src/shared/gatt-server.c:278:25: warning: Variable length array is used.src/shared/gatt-server.c:618:25: warning: Variable length array is used.src/shared/gatt-server.c:716:25: warning: Variable length array is used.tools/bneptest.c:634:39: warning: unknown escape sequence: '\%'tools/mesh-gatt/node.c:456:39: warning: non-ANSI function declaration of function 'node_get_local_node'tools/mesh-gatt/prov.c: note: in included file (through /usr/include/readline/readline.h):tools/meshctl.c:324:33: warning: non-ANSI function declaration of function 'forget_mesh_devices'tools/rctest.c:627:33: warning: non-ANSI function declaration of function 'automated_send_recv'
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH BlueZ 01/19] android: Fix typos
2025-07-03 8:53 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
2025-07-03 10:34 ` bluez.test.bot
@ 2025-07-04 8:54 ` Bastien Nocera
1 sibling, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-04 8:54 UTC (permalink / raw)
To: linux-bluetooth
This one can be dropped as the android/ directory is gone, and none of
the files moved from android/ to unit/ were affected.
Cheers
On Thu, 2025-07-03 at 10:53 +0200, Bastien Nocera wrote:
> Found using codespell.
> ---
> android/a2dp.c | 6 +++---
> android/audio-ipc-api.txt | 2 +-
> android/bluetoothd.te | 2 +-
> android/client/haltest.c | 4 ++--
> android/client/if-bt.c | 16 ++++++++--------
> android/client/if-gatt.c | 14 +++++++-------
> android/client/if-hl.c | 2 +-
> android/gatt.c | 8 ++++----
> android/hal-audio.c | 2 +-
> android/hal-ipc-api.txt | 32 ++++++++++++++++---------------
> -
> android/handsfree-client.c | 8 ++++----
> android/hardware/audio_effect.h | 4 ++--
> android/hardware/bluetooth.h | 2 +-
> android/hardware/bt_hf.h | 2 +-
> android/hardware/bt_hh.h | 8 ++++----
> android/hardware/bt_rc.h | 6 +++---
> android/hardware/hardware.h | 4 ++--
> android/health.c | 4 ++--
> android/hidhost.c | 6 +++---
> android/pics-avctp.txt | 2 +-
> android/pics-avrcp.txt | 2 +-
> android/pics-gap.txt | 2 +-
> android/pics-opp.txt | 4 ++--
> android/pts-gatt.txt | 2 +-
> android/system-emulator.c | 2 +-
> android/system/audio.h | 4 ++--
> android/tester-gatt.c | 2 +-
> android/tester-hidhost.c | 2 +-
> android/tester-main.c | 8 ++++----
> 29 files changed, 81 insertions(+), 81 deletions(-)
>
> diff --git a/android/a2dp.c b/android/a2dp.c
> index ee607a32dabe..8d0e4d62e10c 100644
> --- a/android/a2dp.c
> +++ b/android/a2dp.c
> @@ -295,13 +295,13 @@ static int sbc_check_config(void *caps, uint8_t
> caps_len, void *conf,
> }
>
> if (config->max_bitpool < cap->min_bitpool) {
> - error("SBC: Invalid maximun bitpool (%u < %u)",
> + error("SBC: Invalid maximum bitpool (%u < %u)",
> config->max_bitpool, cap-
> >min_bitpool);
> return -EINVAL;
> }
>
> if (config->min_bitpool > cap->max_bitpool) {
> - error("SBC: Invalid minimun bitpool (%u > %u)",
> + error("SBC: Invalid minimum bitpool (%u > %u)",
> config->min_bitpool, cap-
> >min_bitpool);
> return -EINVAL;
> }
> @@ -375,7 +375,7 @@ static int aptx_check_config(void *caps, uint8_t
> caps_len, void *conf,
> config = conf;
>
> if (!(cap->frequency & config->frequency)) {
> - error("APTX: Unsupported frequenct (%u) by
> endpoint",
> + error("APTX: Unsupported frequency (%u) by
> endpoint",
> config-
> >frequency);
> return -EINVAL;
> }
> diff --git a/android/audio-ipc-api.txt b/android/audio-ipc-api.txt
> index f4a497dd8d5b..ba4d1c1c86d0 100644
> --- a/android/audio-ipc-api.txt
> +++ b/android/audio-ipc-api.txt
> @@ -46,7 +46,7 @@ Audio Service (ID 0)
>
> Response parameters: Status (1 octet)
>
> - Opcode 0x01 - Open Audio Endpoint commmand
> + Opcode 0x01 - Open Audio Endpoint command
>
> Command parameters: Service UUID (16 octets)
> Codec ID (1 octet)
> diff --git a/android/bluetoothd.te b/android/bluetoothd.te
> index 532bfbb353ae..1ac719b62161 100644
> --- a/android/bluetoothd.te
> +++ b/android/bluetoothd.te
> @@ -12,7 +12,7 @@ allow bluetoothd
> bluetooth_data_file:notdevfile_class_set create_file_perms;
> allow bluetoothd self:capability { setuid net_admin net_bind_service
> net_raw };
> allow bluetoothd kernel:system module_request;
>
> -# TODO: this may be romoved for userbuild where we don't use
> bluetoothd_wrapper
> +# TODO: this may be removed for userbuild where we don't use
> bluetoothd_wrapper
> allow bluetoothd bluetoothd_main_exec:file { execute
> execute_no_trans read open };
>
> # IPC socket communication
> diff --git a/android/client/haltest.c b/android/client/haltest.c
> index cb5f68833fe8..f1b3f7261c81 100644
> --- a/android/client/haltest.c
> +++ b/android/client/haltest.c
> @@ -145,7 +145,7 @@ static void help_p(int argc, const char **argv)
> }
>
> terminal_print("\nTo get help on methods for each
> interface type:\n");
> - terminal_print("\n\thelp <inerface>\n");
> + terminal_print("\n\thelp <interface>\n");
> terminal_print("\nBasic scenario:\n\tbluetooth
> init\n");
> terminal_print("\tbluetooth enable\n\tbluetooth
> start_discovery\n");
> terminal_print("\tbluetooth get_profile_interface
> handsfree\n");
> @@ -217,7 +217,7 @@ static struct method commands[] = {
> END_METHOD
> };
>
> -/* Gets comman by name */
> +/* Gets command by name */
> struct method *get_command(const char *name)
> {
> return get_method(commands, name);
> diff --git a/android/client/if-bt.c b/android/client/if-bt.c
> index 68001a15132e..978834ebefc4 100644
> --- a/android/client/if-bt.c
> +++ b/android/client/if-bt.c
> @@ -65,7 +65,7 @@ static void dump_properties(int num_properties,
> bt_property_t *properties)
>
> for (i = 0; i < num_properties; i++) {
> /*
> - * properities sometimes come unaligned hence memcp
> to
> + * properties sometimes come unaligned hence memcp
> to
> * aligned buffer
> */
> bt_property_t prop;
> @@ -152,7 +152,7 @@ static void add_remote_device_from_props(int
> num_properties,
>
> for (i = 0; i < num_properties; i++) {
> /*
> - * properities sometimes come unaligned hence memcp
> to
> + * properties sometimes come unaligned hence memcp
> to
> * aligned buffer
> */
> bt_property_t property;
> @@ -216,7 +216,7 @@ static void
> discovery_state_changed_cb(bt_discovery_state_t state)
> }
>
> /*
> - * Buffer for remote addres that came from one of bind request.
> + * Buffer for remote address that came from one of bind request.
> * It's stored for command completion.
> */
> static char last_remote_addr[MAX_ADDR_STR_LEN];
> @@ -595,7 +595,7 @@ static void complete_addr_c(int argc, const char
> **argv, enum_func *enum_func,
> }
> }
>
> -/* Just addres to complete, use complete_addr_c */
> +/* Just address to complete, use complete_addr_c */
> #define get_remote_device_properties_c complete_addr_c
>
> static void get_remote_device_properties_p(int argc, const char
> **argv)
> @@ -696,7 +696,7 @@ static void get_remote_service_record_p(int argc,
> const char **argv)
> EXEC(if_bluetooth->get_remote_service_record, &addr, &uuid);
> }
>
> -/* Just addres to complete, use complete_addr_c */
> +/* Just address to complete, use complete_addr_c */
> #define get_remote_services_c complete_addr_c
>
> static void get_remote_services_p(int argc, const char **argv)
> @@ -723,7 +723,7 @@ static void cancel_discovery_p(int argc, const
> char **argv)
> EXEC(if_bluetooth->cancel_discovery);
> }
>
> -/* Just addres to complete, use complete_addr_c */
> +/* Just address to complete, use complete_addr_c */
> #define create_bond_c complete_addr_c
>
> static void create_bond_p(int argc, const char **argv)
> @@ -748,7 +748,7 @@ static void create_bond_p(int argc, const char
> **argv)
> #endif
> }
>
> -/* Just addres to complete, use complete_addr_c */
> +/* Just address to complete, use complete_addr_c */
> #define remove_bond_c complete_addr_c
>
> static void remove_bond_p(int argc, const char **argv)
> @@ -761,7 +761,7 @@ static void remove_bond_p(int argc, const char
> **argv)
> EXEC(if_bluetooth->remove_bond, &addr);
> }
>
> -/* Just addres to complete, use complete_addr_c */
> +/* Just address to complete, use complete_addr_c */
> #define cancel_bond_c complete_addr_c
>
> static void cancel_bond_p(int argc, const char **argv)
> diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
> index d00afffcb5ce..89a48171cf09 100644
> --- a/android/client/if-gatt.c
> +++ b/android/client/if-gatt.c
> @@ -89,7 +89,7 @@ const btgatt_interface_t *if_gatt = NULL;
> "No min interval
> specified\n")
> #define VERIFY_MAX_INTERVAL(n, v) VERIFY_INT_ARG(n, v, \
> "No max interval
> specified\n")
> -#define VERIFY_APPEARANCE(n, v) VERIFY_INT_ARG(n, v, "No apperance
> specified\n")
> +#define VERIFY_APPEARANCE(n, v) VERIFY_INT_ARG(n, v, "No appearance
> specified\n")
> #define VERIFY_MANUFACTURER_LEN(n, v) VERIFY_INT_ARG(n, v, \
> "No manufacturer len
> specified\n")
> #define VERIFY_SERVICE_DATA_LEN(n, v) VERIFY_INT_ARG(n, v, \
> @@ -311,7 +311,7 @@ static void gatt_str2bt_uuid_t(const char *str,
> int len, bt_uuid_t *uuid)
> }
> }
>
> -/* char_id formating function */
> +/* char_id formatting function */
> static char *btgatt_gatt_id_t2str(const btgatt_gatt_id_t *char_id,
> char *buf)
> {
> char uuid_buf[MAX_UUID_STR_LEN];
> @@ -346,7 +346,7 @@ static void str2btgatt_gatt_id_t(const char *buf,
> btgatt_gatt_id_t *char_id)
> }
> }
>
> -/* service_id formating function */
> +/* service_id formatting function */
> static char *btgatt_srvc_id_t2str(const btgatt_srvc_id_t *srvc_id,
> char *buf)
> {
> char uuid_buf[MAX_UUID_STR_LEN];
> @@ -653,7 +653,7 @@ static void gattc_read_remote_rssi_cb(int
> client_if, bt_bdaddr_t *bda, int rssi,
> {
> char buf[MAX_ADDR_STR_LEN];
>
> - haltest_info("%s: client_if=%d bda=%s rssi=%d satus=%d\n",
> __func__,
> + haltest_info("%s: client_if=%d bda=%s rssi=%d status=%d\n",
> __func__,
> client_if, bt_bdaddr_t2str(bda, buf), rssi,
> status);
> }
>
> @@ -1413,7 +1413,7 @@ static void write_characteristic_c(int argc,
> const char **argv,
> enum_func *enum_func, void
> **user)
> {
> /*
> - * This should be from tGATT_WRITE_TYPE but it's burried
> + * This should be from tGATT_WRITE_TYPE but it's buried
> * inside bluedroid guts
> */
> static const char *wrtypes[] = { "1", "2", "3", NULL };
> @@ -1492,7 +1492,7 @@ static void write_descriptor_c(int argc, const
> char **argv,
> enum_func *enum_func, void
> **user)
> {
> /*
> - * This should be from tGATT_WRITE_TYPE but it's burried
> + * This should be from tGATT_WRITE_TYPE but it's buried
> * inside bluedroid guts
> */
> static const char *wrtypes[] = { "1", "2", "3", NULL };
> @@ -2646,7 +2646,7 @@ static struct method server_methods[] = {
> GATTS_METHODCH(add_included_service,
> "<server_if> <service_handle>
> <included_handle>"),
> GATTS_METHODCH(add_characteristic,
> - "<server_if> <service_handle> <uuid> <properites>
> <permissions>"),
> + "<server_if> <service_handle> <uuid> <properties>
> <permissions>"),
> GATTS_METHODCH(add_descriptor,
> "<server_if> <service_handle> <uuid>
> <permissions>"),
> GATTS_METHODCH(start_service,
> diff --git a/android/client/if-hl.c b/android/client/if-hl.c
> index 826c81750478..90a4a1fab4a7 100644
> --- a/android/client/if-hl.c
> +++ b/android/client/if-hl.c
> @@ -173,7 +173,7 @@ static void register_application_p(int argc,
> const char **argv)
> memset(®, 0, sizeof(reg));
>
> if (argc != ((atoi(argv[6]) * 4) + 7)) {
> - haltest_error("mdep cfg argumetns are not
> proper\n");
> + haltest_error("mdep cfg arguments are not
> proper\n");
> return;
> }
>
> diff --git a/android/gatt.c b/android/gatt.c
> index 89fcdb114429..aba88fcf8c87 100644
> --- a/android/gatt.c
> +++ b/android/gatt.c
> @@ -3500,7 +3500,7 @@ static void
> handle_client_write_descriptor(const void *buf, uint16_t len)
> DBG("");
>
> if (len != sizeof(*cmd) + cmd->len) {
> - error("Invalid write desriptor command (%u bytes),
> terminating",
> + error("Invalid write descriptor command (%u bytes),
> terminating",
>
> len);
> raise(SIGTERM);
> return;
> @@ -4742,7 +4742,7 @@ static void read_cb(struct gatt_db_attribute
> *attrib, unsigned int id,
>
> app = find_app_by_id(app_id);
> if (!app) {
> - error("gatt: read_cb, cound not found app id");
> + error("gatt: read_cb, could not found app id");
> goto failed;
> }
>
> @@ -4753,7 +4753,7 @@ static void read_cb(struct gatt_db_attribute
> *attrib, unsigned int id,
>
> conn = find_conn(&bdaddr, app->id);
> if (!conn) {
> - error("gatt: read_cb, cound not found connection");
> + error("gatt: read_cb, could not found connection");
> goto failed;
> }
>
> @@ -6433,7 +6433,7 @@ static void write_confirm(struct
> gatt_db_attribute *attrib,
> if (!err)
> return;
>
> - error("Error writting attribute %p", attrib);
> + error("Error writing attribute %p", attrib);
> }
>
> static void write_cmd_request(const uint8_t *cmd, uint16_t cmd_len,
> diff --git a/android/hal-audio.c b/android/hal-audio.c
> index f3d9b40a62fe..f9169bf289db 100644
> --- a/android/hal-audio.c
> +++ b/android/hal-audio.c
> @@ -500,7 +500,7 @@ static bool open_endpoint(struct audio_endpoint
> **epp,
> }
>
> if (!ep) {
> - error("Cound not find opened endpoint");
> + error("Could not find opened endpoint");
> goto failed;
> }
>
> diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
> index e3b7798b3d26..3c41e9871db6 100644
> --- a/android/hal-ipc-api.txt
> +++ b/android/hal-ipc-api.txt
> @@ -1162,7 +1162,7 @@ Commands and responses:
> Data type (2 octets)
> Channel type (1 octet)
> MDEP description length (2
> octets)
> - MDEP description (MDEP
> desciption length)
> + MDEP description (MDEP
> description length)
> Response parameters: <none>
>
> In case of an error, the error response will be
> returned.
> @@ -1827,7 +1827,7 @@ Commands and responses:
> Transaction ID (4 octets)
> Handle (2 octets)
> Offset (2 octets)
> - Auth Request (1 octect)
> + Auth Request (1 octet)
> Status (4 octets)
> GATT Response (4 octets)
> Response parameters: <none>
> @@ -2352,14 +2352,14 @@ Commands and response:
>
> Opcode 0x00 - Error response
>
> - Opcode 0x01 - Connect command/respose
> + Opcode 0x01 - Connect command/response
>
> - Command parameters: Remote address (6 octects)
> + Command parameters: Remote address (6 octets)
> Response parameters: <none>
>
> In case of an error, the error response will be
> returned.
>
> - Opcode 0x02 - Disonnect command/response
> + Opcode 0x02 - Disconnect command/response
>
> Command parameters: Remote address (6 octetcs)
> Response parameters: <none>
> @@ -2440,7 +2440,7 @@ Commands and response:
>
> In case of an error, the error response will be
> returned.
>
> - Opcode 0x11 - Query Current Calls commad/response
> + Opcode 0x11 - Query Current Calls command/response
>
> Command parameters: <none>
> Response parameters: <none>
> @@ -2512,7 +2512,7 @@ Notifications:
> 1 Release active calls and accept
> other call
> 2 Release specified active call only
> 3 Place all active calls on hold and
> accept other call
> - 4 Request private mode with secified
> call
> + 4 Request private mode with specified
> call
> 5 Add a held call to the multiparty
> 6 Connect two calls and leave
> multiparty
> 7-31 Reserved for future use
> @@ -2563,7 +2563,7 @@ Notifications:
>
> Notification parameters: Name (string)
>
> - Opcode 0x89 - Call Indicatior notification
> + Opcode 0x89 - Call Indicator notification
>
> Notification parameters: Call (1 octet)
>
> @@ -2587,7 +2587,7 @@ Notifications:
> 0x01 = Hold and Active
> 0x02 = Hold
>
> - Opcode 0x8c - Resposne and Hold Status notification
> + Opcode 0x8c - Response and Hold Status notification
>
> Notification parameters: Status (1 octet)
>
> @@ -2617,13 +2617,13 @@ Notifications:
> Valid Direction values: 0x00 = Outgoing
> 0x01 = Incoming
>
> - Valid Call Sate values: 0x00 = Active
> - 0x01 = Held
> - 0x02 = Dialing
> - 0x03 = Alerting
> - 0x04 = Incoming
> - 0x05 = Waiting
> - 0x06 = Call held by Response
> and Hold
> + Valid Call State values: 0x00 = Active
> + 0x01 = Held
> + 0x02 = Dialing
> + 0x03 = Alerting
> + 0x04 = Incoming
> + 0x05 = Waiting
> + 0x06 = Call held by
> Response and Hold
>
> Valid Multiparty values: 0x00 = Single Call
> 0x01 = Multiparty
> (conference) Call
> diff --git a/android/handsfree-client.c b/android/handsfree-client.c
> index c8f9e690eaa7..31be27fc3247 100644
> --- a/android/handsfree-client.c
> +++ b/android/handsfree-client.c
> @@ -1308,7 +1308,7 @@ static void slc_cind_status_resp(enum
> hfp_result result,
> /* Continue with SLC creation */
> if (!hfp_hf_send_command(dev->hf, slc_cmer_resp, dev,
> "AT+CMER=3,0
> ,0,1")) {
> - error("hf-client: Counld not send AT+CMER");
> + error("hf-client: Could not send AT+CMER");
> goto failed;
> }
>
> @@ -1335,13 +1335,13 @@ static void slc_cind_resp(enum hfp_result
> result, enum hfp_error cme_err,
> /* Continue with SLC creation */
> if (!hfp_hf_register(dev->hf, slc_cind_status_cb, "+CIND",
> dev,
> NULL
> )) {
> - error("hf-client: Counld not register +CIND");
> + error("hf-client: Could not register +CIND");
> goto failed;
> }
>
> if (!hfp_hf_send_command(dev->hf, slc_cind_status_resp, dev,
> "AT+
> CIND?")) {
> - error("hf-client: Counld not send AT+CIND?");
> + error("hf-client: Could not send AT+CIND?");
> goto failed;
> }
>
> @@ -1886,7 +1886,7 @@ static void confirm_cb(GIOChannel *chan,
> gpointer data)
> }
>
> if (dev->state != HAL_HF_CLIENT_CONN_STATE_DISCONNECTED) {
> - /* TODO: Handle colision */
> + /* TODO: Handle collision */
> error("hf-client: Connections is up or ongoing ?");
> goto drop;
> }
> diff --git a/android/hardware/audio_effect.h
> b/android/hardware/audio_effect.h
> index 2c63f1ccf4ca..1f9b5463376a 100644
> --- a/android/hardware/audio_effect.h
> +++ b/android/hardware/audio_effect.h
> @@ -63,7 +63,7 @@ typedef struct effect_descriptor_s {
> uint16_t cpuLoad; // CPU load indication (see below)
> uint16_t memoryUsage; // Data Memory usage (see below)
> char name[EFFECT_STRING_LEN_MAX]; // human readable effect
> name
> - char implementor[EFFECT_STRING_LEN_MAX]; // human readable
> effect implementor name
> + char implementor[EFFECT_STRING_LEN_MAX]; // human readable
> effect implementer name
> } effect_descriptor_t;
>
> // CPU load and memory usage indication: each effect implementation
> must provide an indication of
> @@ -911,7 +911,7 @@ typedef struct audio_effect_library_s {
> uint32_t version;
> // Name of this library
> const char *name;
> - // Author/owner/implementor of the library
> + // Author/owner/implementer of the library
> const char *implementor;
>
>
> /////////////////////////////////////////////////////////////////////
> ///////////
> diff --git a/android/hardware/bluetooth.h
> b/android/hardware/bluetooth.h
> index 21253e00ab91..0808a11fc053 100644
> --- a/android/hardware/bluetooth.h
> +++ b/android/hardware/bluetooth.h
> @@ -420,7 +420,7 @@ typedef struct {
> size_t size;
> /**
> * Opens the interface and provides the callback routines
> - * to the implemenation of this interface.
> + * to the implementation of this interface.
> */
> int (*init)(bt_callbacks_t* callbacks );
>
> diff --git a/android/hardware/bt_hf.h b/android/hardware/bt_hf.h
> index c3f952415c25..6cc37ed89128 100644
> --- a/android/hardware/bt_hf.h
> +++ b/android/hardware/bt_hf.h
> @@ -282,7 +282,7 @@ typedef struct {
> /** Closes the interface. */
> void (*cleanup)( void );
>
> - /** configureation for the SCO codec */
> + /** configuration for the SCO codec */
> bt_status_t (*configure_wbs)( bt_bdaddr_t *bd_addr
> ,bthf_wbs_config_t config );
> } bthf_interface_t;
>
> diff --git a/android/hardware/bt_hh.h b/android/hardware/bt_hh.h
> index 2dd61beacaf2..51bb75ae5c6f 100644
> --- a/android/hardware/bt_hh.h
> +++ b/android/hardware/bt_hh.h
> @@ -34,7 +34,7 @@ typedef enum
> BTHH_HS_HID_NOT_READY, /* handshake error : device not
> ready */
> BTHH_HS_INVALID_RPT_ID, /* handshake error : invalid
> report ID */
> BTHH_HS_TRANS_NOT_SPT, /* handshake error : transaction
> not spt */
> - BTHH_HS_INVALID_PARAM, /* handshake error : invalid
> paremter */
> + BTHH_HS_INVALID_PARAM, /* handshake error : invalid
> parameter */
> BTHH_HS_ERROR, /* handshake error : unspecified
> HS error */
> BTHH_ERR, /* general BTA HH error */
> BTHH_ERR_SDP, /* SDP error */
> @@ -79,8 +79,8 @@ typedef struct
> */
> typedef void (* bthh_connection_state_callback)(bt_bdaddr_t
> *bd_addr, bthh_connection_state_t state);
>
> -/** Callback for vitual unplug api.
> - * the status of the vitual unplug
> +/** Callback for virtual unplug api.
> + * the status of the virtual unplug
> */
> typedef void (* bthh_virtual_unplug_callback)(bt_bdaddr_t *bd_addr,
> bthh_status_t hh_status);
>
> @@ -100,7 +100,7 @@ typedef void (*
> bthh_idle_time_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_
>
>
> /** Callback for get report api.
> - * if staus is ok rpt_data contains the report data
> + * if status is ok rpt_data contains the report data
> */
> typedef void (* bthh_get_report_callback)(bt_bdaddr_t *bd_addr,
> bthh_status_t hh_status, uint8_t* rpt_data, int rpt_size);
>
> diff --git a/android/hardware/bt_rc.h b/android/hardware/bt_rc.h
> index c1290aeb1f59..1b34fa734519 100644
> --- a/android/hardware/bt_rc.h
> +++ b/android/hardware/bt_rc.h
> @@ -111,7 +111,7 @@ typedef struct {
> uint8_t text[BTRC_MAX_ATTR_STR_LEN];
> } btrc_element_attr_val_t;
>
> -/** Callback for the controller's supported feautres */
> +/** Callback for the controller's supported features */
> typedef void (* btrc_remote_features_callback)(bt_bdaddr_t *bd_addr,
>
> btrc_remote_features_t features);
>
> @@ -189,7 +189,7 @@ typedef struct {
> */
> bt_status_t (*init)( btrc_callbacks_t* callbacks );
>
> - /** Respose to GetPlayStatus request. Contains the current
> + /** Response to GetPlayStatus request. Contains the current
> ** 1. Play status
> ** 2. Song duration/length
> ** 3. Song position
> @@ -243,7 +243,7 @@ typedef struct {
> /**Send current volume setting to remote side. Support limited
> to SetAbsoluteVolume
> ** This can be enhanced to support Relative Volume (AVRCP 1.0).
> ** With RelateVolume, we will send VOLUME_UP/VOLUME_DOWN opposed
> to absolute volume level
> - ** volume: Should be in the range 0-127. bit7 is reseved and
> cannot be set
> + ** volume: Should be in the range 0-127. bit7 is reserved and
> cannot be set
> */
> bt_status_t (*set_volume)(uint8_t volume);
>
> diff --git a/android/hardware/hardware.h
> b/android/hardware/hardware.h
> index 74470a31a41e..dc55b73b3264 100644
> --- a/android/hardware/hardware.h
> +++ b/android/hardware/hardware.h
> @@ -44,7 +44,7 @@ __BEGIN_DECLS
> #define HARDWARE_HAL_API_VERSION HARDWARE_MAKE_API_VERSION(1, 0)
>
> /*
> - * Helper macros for module implementors.
> + * Helper macros for module implementers.
> *
> * The derived modules should provide convenience macros for
> supported
> * versions so that implementations can explicitly specify
> module/device
> @@ -122,7 +122,7 @@ typedef struct hw_module_t {
> /** Name of this module */
> const char *name;
>
> - /** Author/owner/implementor of the module */
> + /** Author/owner/implementer of the module */
> const char *author;
>
> /** Modules methods */
> diff --git a/android/health.c b/android/health.c
> index 9a29964b1be2..39cf3748e36a 100644
> --- a/android/health.c
> +++ b/android/health.c
> @@ -948,7 +948,7 @@ static void bt_health_mdep_cfg_data(const void
> *buf, uint16_t len)
> * register with different role and different
> configurations.
> * 1) Does device supports SOURCE and SINK at the same time
> ?
> * 2) Does it require different SDP records or one record
> with
> - * multile MDEP configurations ?
> + * multiple MDEP configurations ?
> */
> if (update_sdp_record(app) < 0) {
> error("health: HDP SDP record preparation failed");
> @@ -1221,7 +1221,7 @@ static void mcap_mdl_deleted_cb(struct mcap_mdl
> *mdl, void *data)
>
> static void mcap_mdl_aborted_cb(struct mcap_mdl *mdl, void *data)
> {
> - DBG("Not Implemeneted");
> + DBG("Not Implemented");
> }
>
> static struct health_device *create_device(struct health_app *app,
> diff --git a/android/hidhost.c b/android/hidhost.c
> index 598bec326ca8..2e88f8c7292e 100644
> --- a/android/hidhost.c
> +++ b/android/hidhost.c
> @@ -357,7 +357,7 @@ static void bt_hid_notify_get_report(struct
> hid_device *dev, uint8_t *buf,
> }
>
> /*
> - * Report porotocol mode reply contains id after hdr, in
> boot
> + * Report protocol mode reply contains id after hdr, in boot
> * protocol mode id doesn't exist
> */
> ev_len += (dev->boot_dev) ? (len - 1) : (len - 2);
> @@ -366,7 +366,7 @@ static void bt_hid_notify_get_report(struct
> hid_device *dev, uint8_t *buf,
> bdaddr2android(&dev->dst, ev->bdaddr);
>
> /*
> - * Report porotocol mode reply contains id after hdr, in
> boot
> + * Report protocol mode reply contains id after hdr, in boot
> * protocol mode id doesn't exist
> */
> if (dev->boot_dev) {
> @@ -1043,7 +1043,7 @@ static void bt_hid_info(const void *buf,
> uint16_t len)
> }
>
> /*
> - * Data from hal_cmd_hidhost_set_info is usefull only when
> we create
> + * Data from hal_cmd_hidhost_set_info is useful only when we
> create
> * UHID device. Once device is created all the transactions
> will be
> * done through the fd. There is no way to use this
> information
> * once device is created with HID internals.
> diff --git a/android/pics-avctp.txt b/android/pics-avctp.txt
> index 34479623c9f0..1262feed8422 100644
> --- a/android/pics-avctp.txt
> +++ b/android/pics-avctp.txt
> @@ -41,7 +41,7 @@ TSPC_AVCTP_2_2 True Transaction
> label management (M)
> TSPC_AVCTP_2_3 True Packet type field management (M)
> TSPC_AVCTP_2_4 True Message type field management (M)
> TSPC_AVCTP_2_5 True PID field management (M)
> -TSPC_AVCTP_2_6 True IPID field mangement (M)
> +TSPC_AVCTP_2_6 True IPID field management (M)
> TSPC_AVCTP_2_7 True Message information management (M)
> TSPC_AVCTP_2_8 False Event registration for message
> reception (O)
> TSPC_AVCTP_2_9 False Event registration for connection
> request (O)
> diff --git a/android/pics-avrcp.txt b/android/pics-avrcp.txt
> index 7bd68fa77213..f6ab74d88c32 100644
> --- a/android/pics-avrcp.txt
> +++ b/android/pics-avrcp.txt
> @@ -617,7 +617,7 @@ TSPC_AVRCP_11_24 False TG: category
> 4 - Operation id: 9 (O)
> TSPC_AVRCP_11_25 False TG: category 4 - Operation
> id: dot (O)
> TSPC_AVRCP_11_26 False TG: category 4 - Operation
> id: enter (O)
> TSPC_AVRCP_11_27 False TG: category 4 - Operation
> id: clear (O)
> -TSPC_AVRCP_11_28 False TG: category 4 - Operation
> id: disply (O)
> +TSPC_AVRCP_11_28 False TG: category 4 - Operation
> id: display (O)
> TSPC_AVRCP_11_29 False TG: category 4 - Operation
> id: help (O)
> TSPC_AVRCP_11_30 False TG: category 4 - Operation
> id: page up (O)
> TSPC_AVRCP_11_31 False TG: category 4 - Operation
> id: page down (O)
> diff --git a/android/pics-gap.txt b/android/pics-gap.txt
> index 37759955f8a4..a96984a4873d 100644
> --- a/android/pics-gap.txt
> +++ b/android/pics-gap.txt
> @@ -101,7 +101,7 @@ C.2: Excluded if TSPC_GAP_2_7 is supported,
> otherwise Optional.
> C.5: Mandatory If (TSPC_GAP_2_5 or TSPC_GAP_2_6 or TSPC_GAP_2_7) is
> supported,
> otherwise Optional.
> C.4: Mandatory if (Core Spec 2.1 or later) is supported, otherwise
> Excluded.
> -Note 2. If a Core 2.0 and earlier design claims to support secure
> communcation
> +Note 2. If a Core 2.0 and earlier design claims to support secure
> communication
> it should support either Security mode 2 or 3.
> Note 3. A Core 2.1 or later device shall always support secure
> communication
> in Security Mode 4, and shall use that mode to connect with
> another
> diff --git a/android/pics-opp.txt b/android/pics-opp.txt
> index 145198d487fa..846d6f68fc00 100644
> --- a/android/pics-opp.txt
> +++ b/android/pics-opp.txt
> @@ -75,7 +75,7 @@ TSPC_OPP_2_14 False Client: vCard 2.1
> (C.1)
> TSPC_OPP_2_15 False Client: Exchange business card (O)
> TSPC_OPP_2_16 False Client: vCard 2.1 (C.2)
> TSPC_OPP_2_17 False GOEP v2 (C.9)
> -TSPC_OPP_2_18 False GOEP v2 Backward Compability (C.9)
> +TSPC_OPP_2_18 False GOEP v2 Backward Compatibility (C.9)
> TSPC_OPP_2_19 False OBEX over L2CAP (C.9)
> TSPC_OPP_2_20 False OBEX Reliable Session (C.10)
> TSPC_OPP_2_21 False OBEX SRM (C.10)
> @@ -147,7 +147,7 @@ TSPC_OPP_3_16 False Server:
> Business card exchange (O.2)
> TSPC_OPP_3_17 False Server: vCard 2.1 (C.2)
> TSPC_OPP_3_18 False Server: Business card exchange
> reject. (O)
> TSPC_OPP_3_19 False GOEP v2 (C.5)
> -TSPC_OPP_3_20 False GOEP v2 Backward Compability (C.5)
> +TSPC_OPP_3_20 False GOEP v2 Backward Compatibility (C.5)
> TSPC_OPP_3_21 False OBEX over L2CAP (C.5)
> TSPC_OPP_3_22 False OBEX Reliable Session (C.16)
> TSPC_OPP_3_23 False OBEX SRM (C.6)
> diff --git a/android/pts-gatt.txt b/android/pts-gatt.txt
> index 3531ccae9e7c..04c7ebe721ae 100644
> --- a/android/pts-gatt.txt
> +++ b/android/pts-gatt.txt
> @@ -925,7 +925,7 @@ TC_GAW_SR_BV_01_C PASS haltest:
> TC_GAW_SR_BV_02_C PASS haltest:
> gatts add service
> gatts add_characteristics:
> - <properties> 66 <permisions>
> 145
> + <properties> 66
> <permissions> 145
> gatts start_service
> gattc listen
> gatts send_response: (twice)
> diff --git a/android/system-emulator.c b/android/system-emulator.c
> index 50bb088d3188..48423b842d5e 100644
> --- a/android/system-emulator.c
> +++ b/android/system-emulator.c
> @@ -137,7 +137,7 @@ static void snoop_start(void)
>
> static void snoop_stop(void)
> {
> - printf("Stoping %s/%s\n", exec_dir, "bluetoothd-snoop");
> + printf("Stopping %s/%s\n", exec_dir, "bluetoothd-snoop");
>
> kill(snoop_pid, SIGTERM);
> }
> diff --git a/android/system/audio.h b/android/system/audio.h
> index 0c5af5e8404a..337866264f99 100644
> --- a/android/system/audio.h
> +++ b/android/system/audio.h
> @@ -224,8 +224,8 @@ typedef enum {
> * The main format indicates the main codec type. The sub format
> field
> * indicates options and parameters for each format. The sub format
> is mainly
> * used for record to indicate for instance the requested bitrate or
> profile.
> - * It can also be used for certain formats to give informations not
> present in
> - * the encoded audio stream (e.g. octet alignement for AMR).
> + * It can also be used for certain formats to give information not
> present in
> + * the encoded audio stream (e.g. octet alignment for AMR).
> */
> typedef enum {
> AUDIO_FORMAT_INVALID = 0xFFFFFFFFUL,
> diff --git a/android/tester-gatt.c b/android/tester-gatt.c
> index 30db7684d66e..42006bbc003a 100644
> --- a/android/tester-gatt.c
> +++ b/android/tester-gatt.c
> @@ -3582,7 +3582,7 @@ static struct test_case test_cases[] = {
> ACTION_SUCCESS(bluetooth_disable_action, NULL),
> CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED,
> BT_STATE_OFF),
> ),
> - /* This tests embeded ccc */
> + /* This tests embedded ccc */
> TEST_CASE_BREDRLE("Gatt Server - Srvc change write req.
> success",
> ACTION_SUCCESS(bluetooth_enable_action, NULL),
> CALLBACK_STATE(CB_BT_ADAPTER_STATE_CHANGED,
> BT_STATE_ON),
> diff --git a/android/tester-hidhost.c b/android/tester-hidhost.c
> index f9daf559067a..53a5d778775c 100644
> --- a/android/tester-hidhost.c
> +++ b/android/tester-hidhost.c
> @@ -241,7 +241,7 @@ static void hid_ctrl_cid_hook_cb(const void
> *data, uint16_t len,
> hid_prepare_reply_report(cid_data);
> break;
> /*
> - * HID device doesnot reply for this commads, so reaching
> pdu's
> + * HID device doesn't reply for this commands, so reaching
> pdu's
> * to hid device means assuming test passed
> */
> case HID_SET_INPUT_REPORT:
> diff --git a/android/tester-main.c b/android/tester-main.c
> index 361c519ef5a3..6e635b77d3e9 100644
> --- a/android/tester-main.c
> +++ b/android/tester-main.c
> @@ -498,20 +498,20 @@ static bool match_mas_inst(btmce_mas_instance_t
> *exp_inst,
> btmce_mas_instance_t *rec_inst, int
> inst_num)
> {
> if (exp_inst->id && (exp_inst->id != rec_inst->id)) {
> - tester_debug("MAS inst. [%d] id missmatch %d vs %d",
> inst_num,
> + tester_debug("MAS inst. [%d] id mismatch %d vs %d",
> inst_num,
> rec_inst->id,
> exp_inst->id);
> return 0;
> }
>
> if (exp_inst->scn && (exp_inst->scn != rec_inst->scn)) {
> - tester_debug("MAS inst. [%d] scn missmatch %d vs
> %d", inst_num,
> + tester_debug("MAS inst. [%d] scn mismatch %d vs %d",
> inst_num,
> rec_inst->scn,
> exp_inst->scn);
> return 0;
> }
>
> if (exp_inst->msg_types &&
> (exp_inst->msg_types != rec_inst-
> >msg_types)) {
> - tester_debug("Mas inst. [%d] mesg type missmatch %d
> vs %d",
> + tester_debug("Mas inst. [%d] mesg type mismatch %d
> vs %d",
> inst_num, rec_inst->scn,
> exp_inst->scn);
> return 0;
> }
> @@ -614,7 +614,7 @@ static bool match_data(struct step *step)
> exp = queue_peek_head(data->steps);
>
> if (!exp) {
> - /* Can occure while test passed already */
> + /* Can occur while test passed already */
> tester_debug("Cannot get step to match");
> return false;
> }
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH BlueZ 02/19] Fix typos in top-level project docs
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 03/19] attrib: Fix typos Bastien Nocera
` (17 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
HACKING | 2 +-
README | 2 +-
TODO | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/HACKING b/HACKING
index 5e07d91eacd2..84f67cf34a60 100644
--- a/HACKING
+++ b/HACKING
@@ -141,7 +141,7 @@ backtraces, compiler errors, etc.
# git config format.subjectprefix "PATCH BlueZ"
-7) Add a cover letter when introducing a new feature explaning what problem
+7) Add a cover letter when introducing a new feature explaining what problem
you're trying to solve:
# git format-patch --cover-letter -M origin/master -o outgoing/
diff --git a/README b/README
index 6c0777046545..c68f12de31d3 100644
--- a/README
+++ b/README
@@ -242,7 +242,7 @@ For a working system, certain configuration options need to be enabled:
Enable deprecated tools
- By defauld all tools that are no longer maintained are
+ By default all tools that are no longer maintained are
disabled. This option can be used to enable them.
It is not recommended to enable this option for production
diff --git a/TODO b/TODO
index c9b30641d141..f816e8153f64 100644
--- a/TODO
+++ b/TODO
@@ -107,7 +107,7 @@ ATT/GATT (new shared stack)
- Add complete GATT test coverage in unit/test-gatt following the GATT test
spec. This could use shared/gatt-client and shared/gatt-server at the same
- time to test both against eachother. We should definitely have tests for
+ time to test both against each other. We should definitely have tests for
gatt-server and gatt-client simultaneously on one side of the connection.
Priority: High
@@ -212,7 +212,7 @@ Mesh
Complexity: C4
- Merge common functionality from tools/mesh. Ideally, source code from the
- tools/mesh directory should completely dissapear.
+ tools/mesh directory should completely disappear.
Priority: Low
Complexity: C2
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 03/19] attrib: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 01/19] android: " Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 02/19] Fix typos in top-level project docs Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 04/19] doc: " Bastien Nocera
` (16 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
attrib/att.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/attrib/att.c b/attrib/att.c
index fa53c90aa863..bf98fe2d8627 100644
--- a/attrib/att.c
+++ b/attrib/att.c
@@ -74,7 +74,7 @@ const char *att_ecode2str(uint8_t status)
case ATT_ECODE_IO:
return "Internal application error: I/O";
case ATT_ECODE_TIMEOUT:
- return "A timeout occured";
+ return "A timeout occurred";
case ATT_ECODE_ABORTED:
return "The operation was aborted";
default:
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 04/19] doc: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (2 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 03/19] attrib: Fix typos Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 05/19] client: " Bastien Nocera
` (15 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
doc/intel-variants.txt | 2 +-
doc/maintainer-guidelines.txt | 2 +-
doc/mesh-api.txt | 14 +++++++-------
doc/mgmt.rst | 6 +++---
doc/org.bluez.Adapter.rst | 4 ++--
doc/org.bluez.AdvertisementMonitor.rst | 2 +-
doc/org.bluez.DeviceSet.rst | 4 ++--
doc/org.bluez.GattCharacteristic.rst | 4 ++--
doc/org.bluez.MediaTransport.rst | 2 +-
doc/settings-storage.txt | 2 +-
doc/test-runner.rst | 4 ++--
11 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/doc/intel-variants.txt b/doc/intel-variants.txt
index 4f51ca9f5887..a9b27c63d98e 100644
--- a/doc/intel-variants.txt
+++ b/doc/intel-variants.txt
@@ -1,4 +1,4 @@
-Intel Hardware Varaints
+Intel Hardware Variants
=======================
These are the list of Intel Bluetooth devices and its information.
diff --git a/doc/maintainer-guidelines.txt b/doc/maintainer-guidelines.txt
index 21162d4e936a..b875f008258b 100644
--- a/doc/maintainer-guidelines.txt
+++ b/doc/maintainer-guidelines.txt
@@ -96,7 +96,7 @@ Rule 4: Pay extra attention to adding new files to the tree
New files that are added to the tree require several things to be
verified first:
- - Check that the names are acceptible with other maintainers
+ - Check that the names are acceptable with other maintainers
- Ensure that the file modes are correct
- Verify that the license & copyright headers are correct
- If the file is supposed to be part of the release tarball,
diff --git a/doc/mesh-api.txt b/doc/mesh-api.txt
index c67b8411d797..bfea1891dcc8 100644
--- a/doc/mesh-api.txt
+++ b/doc/mesh-api.txt
@@ -259,7 +259,7 @@ Methods:
message as one-segment payload. If not present,
the default setting is "false".
- The data parameter is an outgoing message to be encypted by the
+ The data parameter is an outgoing message to be encrypted by the
bluetooth-meshd daemon and sent on.
Possible errors:
@@ -298,7 +298,7 @@ Methods:
message as one-segment payload. If not present,
the default setting is "false".
- The data parameter is an outgoing message to be encypted by the
+ The data parameter is an outgoing message to be encrypted by the
meshd daemon and sent on.
Possible errors:
@@ -392,7 +392,7 @@ Methods:
Bluetooth SIG. This key should only exist when
publishing on a Vendor defined model.
- The data parameter is an outgoing message to be encypted by the
+ The data parameter is an outgoing message to be encrypted by the
meshd daemon and sent on.
Since only one Publish record may exist per element-model, the
@@ -759,7 +759,7 @@ Methods:
assigned to this remote node.
The device_key parameter is the access layer key that will be
- will used to decrypt privledged messages from this remote node.
+ will used to decrypt priviledged messages from this remote node.
This call affects the local bluetooth-meshd key database only.
@@ -1109,7 +1109,7 @@ Object path freely definable
unprovsioned devices.
The rssi parameter is a signed, normalized measurement of the
- signal strength of the recieved unprovisioned beacon.
+ signal strength of the received unprovisioned beacon.
The data parameter is a variable length byte array, that may
have 1, 2 or 3 distinct fields contained in it including the 16
@@ -1131,8 +1131,8 @@ Object path freely definable
received data will be returned here.
If a beacon with a UUID that has already been reported is
- recieved by the daemon, it will be silently discarded unless it
- was recieved at a higher rssi power level.
+ received by the daemon, it will be silently discarded unless it
+ was received at a higher rssi power level.
uint16 net_index, uint16 unicast RequestProvData(uint8 count)
diff --git a/doc/mgmt.rst b/doc/mgmt.rst
index bf7948d12d0f..5ffc766bddc4 100644
--- a/doc/mgmt.rst
+++ b/doc/mgmt.rst
@@ -4026,7 +4026,7 @@ The Window/Period values are used to set the Scan Parameters when no other
scanning is being done.
Num AD Types and AD Types parameter, filter Advertising and Scan responses by AD
-type. Reponses that do not contain at least one of the requested AD types will
+type. Responses that do not contain at least one of the requested AD types will
be ignored. Otherwise they will be delivered with the Mesh Device Found event.
Possible errors:
@@ -4080,7 +4080,7 @@ Transmit Mesh Packet (since 1.21)
This command sends a Mesh Packet as a NONCONN LE Advertisement.
-The Addr + Addr Type parameters specifify the address to use in the outbound
+The Addr + Addr Type parameters specify the address to use in the outbound
advertising packet. If BD_ADDR_ANY and LE_RANDOM is set, the kernel will create
a single use non-resolvable address.
@@ -5367,7 +5367,7 @@ The RSSI field is a signed octet, and is the RSSI reported by the receiving
controller.
The Instant field is 64 bit value that represents the instant in time the packet
-was received. It's value is not intended to be interpretted by the host, and is
+was received. It's value is not intended to be interpreted by the host, and is
only useful if the host wants to make a timed response to the received packet
(i.e. a Poll/Response).
diff --git a/doc/org.bluez.Adapter.rst b/doc/org.bluez.Adapter.rst
index 174b604136e3..41d6517b512e 100644
--- a/doc/org.bluez.Adapter.rst
+++ b/doc/org.bluez.Adapter.rst
@@ -59,7 +59,7 @@ Possible errors:
void RemoveDevice(object device)
````````````````````````````````
-Removes the remote device object at the given path including cahed information
+Removes the remote device object at the given path including cached information
such as bonding information.
Possible errors:
@@ -129,7 +129,7 @@ Possible filter values:
Disables duplicate detection of advertisement data.
When enabled PropertiesChanged signals will be generated for either
- ManufacturerData and ServiceData everytime they are discovered.
+ ManufacturerData and ServiceData every time they are discovered.
:bool Discoverable (Default false):
diff --git a/doc/org.bluez.AdvertisementMonitor.rst b/doc/org.bluez.AdvertisementMonitor.rst
index 33cdf7945677..e08bf41e7a58 100644
--- a/doc/org.bluez.AdvertisementMonitor.rst
+++ b/doc/org.bluez.AdvertisementMonitor.rst
@@ -142,7 +142,7 @@ The structure of a pattern contains the following:
:uint8 start_position:
- The index in an AD data field where the search hould start. The
+ The index in an AD data field where the search should start. The
beginning of an AD data field is index 0.
:uint8 AD_data_type:
diff --git a/doc/org.bluez.DeviceSet.rst b/doc/org.bluez.DeviceSet.rst
index 47f2ac6e0b01..fa277bdcbba9 100644
--- a/doc/org.bluez.DeviceSet.rst
+++ b/doc/org.bluez.DeviceSet.rst
@@ -25,7 +25,7 @@ void Connect() [experimental]
`````````````````````````````
Connects all **devices** members of the set, each member is connected in
-sequence as they were added/loaded following the same proceedure as described in
+sequence as they were added/loaded following the same procedure as described in
**Device1.Connect**.
Possible errors:
@@ -39,7 +39,7 @@ void Disconnect() [experimental]
````````````````````````````````
Disconnects all **devices** members of the set, each member is disconnected in
-sequence as they were connected following the same proceedure as described in
+sequence as they were connected following the same procedure as described in
**Device1.Disconnect**.
Possible errors:
diff --git a/doc/org.bluez.GattCharacteristic.rst b/doc/org.bluez.GattCharacteristic.rst
index 245f4ba665a7..3cbf361cc904 100644
--- a/doc/org.bluez.GattCharacteristic.rst
+++ b/doc/org.bluez.GattCharacteristic.rst
@@ -303,7 +303,7 @@ boolean WriteAcquired [read-only, optional]
True, if this characteristic has been acquired by any client using AcquireWrite.
-For client properties is ommited in case 'write-without-response' flag is not
+For client properties is omitted in case 'write-without-response' flag is not
set.
For server the presence of this property indicates that AcquireWrite is
@@ -315,7 +315,7 @@ boolean NotifyAcquired [read-only, optional]
True, if this characteristic has been acquired by any client using
AcquireNotify.
-For client this properties is ommited in case 'notify' flag is not set.
+For client this properties is omitted in case 'notify' flag is not set.
For server the presence of this property indicates that AcquireNotify is
supported.
diff --git a/doc/org.bluez.MediaTransport.rst b/doc/org.bluez.MediaTransport.rst
index 2f9e5e1b1185..3d1e8c5b5a40 100644
--- a/doc/org.bluez.MediaTransport.rst
+++ b/doc/org.bluez.MediaTransport.rst
@@ -166,7 +166,7 @@ For a Broadcast Sink, the BIG sync procedure requires all desired streams to be
enumerated from the start and it cannot be later reconfigured by adding or
removing BISes.
-To avoid terminating and recreating the BIG sync everytime a new transport is
+To avoid terminating and recreating the BIG sync every time a new transport is
selected for acquire, all transports selected via **Select** need to be linked
together.
diff --git a/doc/settings-storage.txt b/doc/settings-storage.txt
index fe862c7db78b..0a2cc706c8ed 100644
--- a/doc/settings-storage.txt
+++ b/doc/settings-storage.txt
@@ -107,7 +107,7 @@ Sample:
Identity file format
====================
Identity file contains one [General] group that holds identity information
-such as keys and adresses:
+such as keys and addresses:
IdentityResolvingKey String 128-bit value of the IRK
diff --git a/doc/test-runner.rst b/doc/test-runner.rst
index 1b4eeb9d4c1c..cb56d5b9406c 100644
--- a/doc/test-runner.rst
+++ b/doc/test-runner.rst
@@ -92,8 +92,8 @@ Bluetooth
CONFIG_UHID=y
-Lock debuging
--------------
+Lock debugging
+--------------
To catch locking related issues the following set of kernel config
options may be useful:
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 05/19] client: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (3 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 04/19] doc: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 06/19] emulator: " Bastien Nocera
` (14 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
client/adv_monitor.c | 2 +-
client/mgmt.c | 6 +++---
client/player.c | 2 +-
client/scripts/scan-delegator.bt | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/client/adv_monitor.c b/client/adv_monitor.c
index 29e67096018b..58f379f1bfb1 100644
--- a/client/adv_monitor.c
+++ b/client/adv_monitor.c
@@ -758,7 +758,7 @@ void adv_monitor_get_supported_info(void)
print_supported_list(manager.supported_features);
bt_shell_printf("\n");
- bt_shell_printf("Supported Moniter Types:");
+ bt_shell_printf("Supported Monitor Types:");
print_supported_list(manager.supported_types);
bt_shell_printf("\n");
}
diff --git a/client/mgmt.c b/client/mgmt.c
index 0a9cc589f09f..d07f7d8c0ea3 100644
--- a/client/mgmt.c
+++ b/client/mgmt.c
@@ -4243,7 +4243,7 @@ static void clock_info_rsp(uint8_t status, uint16_t len, const void *param,
print("Local Clock: %u", le32_to_cpu(rp->local_clock));
print("Piconet Clock: %u", le32_to_cpu(rp->piconet_clock));
- print("Accurary: %u", le16_to_cpu(rp->accuracy));
+ print("Accuracy: %u", le16_to_cpu(rp->accuracy));
bt_shell_noninteractive_quit(EXIT_SUCCESS);
}
@@ -6033,7 +6033,7 @@ static const struct bt_shell_menu mgmt_menu = {
{ "ssp", "<on/off>",
cmd_ssp, "Toggle SSP mode" },
{ "sc", "<on/off/only>",
- cmd_sc, "Toogle SC support" },
+ cmd_sc, "Toggle SC support" },
{ "hs", "<on/off>",
cmd_hs, "Toggle HS support" },
{ "le", "<on/off>",
@@ -6095,7 +6095,7 @@ static const struct bt_shell_menu mgmt_menu = {
{ "ext-config", "<on/off>",
cmd_ext_config, "External configuration" },
{ "debug-keys", "<on/off>",
- cmd_debug_keys, "Toogle debug keys" },
+ cmd_debug_keys, "Toggle debug keys" },
{ "conn-info", "[-t type] <remote address>",
cmd_conn_info, "Get connection information" },
{ "io-cap", "<cap>",
diff --git a/client/player.c b/client/player.c
index 2702ea54247b..e4c2d451acca 100644
--- a/client/player.c
+++ b/client/player.c
@@ -5359,7 +5359,7 @@ static void set_links_cb(const DBusError *error, void *user_data)
/* Enqueue link to mark that it is ready to be selected */
queue_push_tail(args->selecting, link);
- /* Continue setting the remanining links */
+ /* Continue setting the remaining links */
transport_set_links(args);
}
diff --git a/client/scripts/scan-delegator.bt b/client/scripts/scan-delegator.bt
index 5ff7bcb892b4..cc2b5afc98a3 100644
--- a/client/scripts/scan-delegator.bt
+++ b/client/scripts/scan-delegator.bt
@@ -16,7 +16,7 @@ advertise on
#
#
# After the connection has been established, transports will
-# be created for streams added by the Bradcast Assistant that
+# be created for streams added by the Broadcast Assistant that
# match the audio capabilities chosen at endpoint register.
# Select the desired transport. If the stream is encrypted,
# a prompt will be displayed to enter the Broadacast Code for
@@ -40,4 +40,4 @@ advertise on
#
# Check that the transport has transitioned to "active" state
#
-# [CHG] Transport /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/bis_n/fd_m State: active
\ No newline at end of file
+# [CHG] Transport /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/bis_n/fd_m State: active
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 06/19] emulator: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (4 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 05/19] client: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 07/19] gobex: " Bastien Nocera
` (13 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
emulator/btdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 555f55e52772..cc844fc3a8ec 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -273,7 +273,7 @@ struct inquiry_data {
int iter;
};
-#define DEFAULT_INQUIRY_INTERVAL 100 /* 100 miliseconds */
+#define DEFAULT_INQUIRY_INTERVAL 100 /* 100 milliseconds */
#define MAX_BTDEV_ENTRIES 16
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 07/19] gobex: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (5 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 06/19] emulator: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 08/19] lib: " Bastien Nocera
` (12 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
gobex/gobex.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 07e46627ab39..0e33ececfc93 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -304,7 +304,7 @@ static void set_srmp(GObex *obex, guint8 srmp, gboolean outgoing)
if (config == NULL)
return;
- /* Dont't reset if direction doesn't match */
+ /* Don't reset if direction doesn't match */
if (srmp > G_OBEX_SRMP_NEXT_WAIT && config->outgoing != outgoing)
return;
@@ -1105,7 +1105,7 @@ static gboolean parse_response(GObex *obex, GObexPacket *rsp)
return final;
/*
- * Resposes have final bit set but in case of GET with SRM
+ * Responses have final bit set but in case of GET with SRM
* we should not remove the request since the remote side will
* continue sending responses until the transfer is finished
*/
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 08/19] lib: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (6 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 07/19] gobex: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 09/19] mesh: " Bastien Nocera
` (11 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
lib/bluetooth.c | 10 +++++-----
lib/sdp.c | 6 +++---
lib/sdp_lib.h | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/bluetooth.c b/lib/bluetooth.c
index 84e40c8191f8..6e09773602be 100644
--- a/lib/bluetooth.c
+++ b/lib/bluetooth.c
@@ -1106,7 +1106,7 @@ const char *bt_compidtostr(int compid)
case 421:
return "Icon Health and Fitness";
case 422:
- return "Wille Engineering (formely as Asandoo GmbH)";
+ return "Wille Engineering (formerly as Asandoo GmbH)";
case 423:
return "ENERGOUS CORPORATION";
case 424:
@@ -1402,7 +1402,7 @@ const char *bt_compidtostr(int compid)
case 569:
return "JIN CO, Ltd";
case 570:
- return "Alatech Tehnology";
+ return "Alatech Technology";
case 571:
return "Beijing CarePulse Electronic Technology Co, Ltd";
case 572:
@@ -3056,7 +3056,7 @@ const char *bt_compidtostr(int compid)
case 1396:
return "AFFORDABLE ELECTRONICS INC";
case 1397:
- return "Integral Memroy Plc";
+ return "Integral Memory Plc";
case 1398:
return "Globalstar, Inc.";
case 1399:
@@ -4562,7 +4562,7 @@ const char *bt_compidtostr(int compid)
case 2150:
return "LAONZ Co.,Ltd";
case 2151:
- return "Western Digital Techologies, Inc.";
+ return "Western Digital Technologies, Inc.";
case 2152:
return "WIOsense GmbH & Co. KG";
case 2153:
@@ -4634,7 +4634,7 @@ const char *bt_compidtostr(int compid)
case 2186:
return "sclak s.r.l.";
case 2187:
- return "Tricorder Arraay Technologies LLC";
+ return "Tricorder Array Technologies LLC";
case 2188:
return "GB Solution co.,Ltd";
case 2189:
diff --git a/lib/sdp.c b/lib/sdp.c
index 411a95b8a7d3..7210ce0b4ec3 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -2429,7 +2429,7 @@ int sdp_set_add_access_protos(sdp_record_t *rec, const sdp_list_t *ap)
* Using a value of NULL for langAttrList has
* effect of removing this attribute (if previously set)
*
- * This function replaces the exisiting sdp_lang_attr_t
+ * This function replaces the existing sdp_lang_attr_t
* structure (if any) with the new one specified.
*
* returns 0 if successful or -1 if there is a failure.
@@ -2539,7 +2539,7 @@ void sdp_set_group_id(sdp_record_t *rec, uuid_t uuid)
* Using a value of NULL for profileDesc has
* effect of removing this attribute (if previously set)
*
- * This function replaces the exisiting ProfileDescriptorList
+ * This function replaces the existing ProfileDescriptorList
* structure (if any) with the new one specified.
*
* returns 0 if successful or -1 if there is a failure.
@@ -3177,7 +3177,7 @@ int sdp_device_record_update(sdp_session_t *session, bdaddr_t *device, const sdp
p = rspbuf + sizeof(sdp_pdu_hdr_t);
if (rsphdr->pdu_id == SDP_ERROR_RSP) {
- /* The status can be invalid sintax or invalid record handle */
+ /* The status can be invalid syntax or invalid record handle */
errno = EINVAL;
status = -1;
} else if (rsphdr->pdu_id != SDP_SVC_UPDATE_RSP) {
diff --git a/lib/sdp_lib.h b/lib/sdp_lib.h
index aad664fd6d94..7a48ad5d0463 100644
--- a/lib/sdp_lib.h
+++ b/lib/sdp_lib.h
@@ -425,7 +425,7 @@ void sdp_record_free(sdp_record_t *rec);
/*
* Register a service record.
*
- * Note: It is the responsbility of the Service Provider to create the
+ * Note: It is the responsibility of the Service Provider to create the
* record first and set its attributes using setXXX() methods.
*
* The service provider must then call sdp_record_register() to make
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 09/19] mesh: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (7 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 08/19] lib: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 10/19] monitor: " Bastien Nocera
` (10 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
mesh/README | 2 +-
mesh/mesh-io-generic.c | 2 +-
mesh/mesh-io-mgmt.c | 2 +-
mesh/mesh.c | 2 +-
mesh/net.c | 4 ++--
mesh/net.h | 2 +-
mesh/node.c | 2 +-
mesh/prov-acceptor.c | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/mesh/README b/mesh/README
index f36b97c2ba67..1f750060505f 100644
--- a/mesh/README
+++ b/mesh/README
@@ -40,7 +40,7 @@ Each subdirectory contains the following files:
File containing next sequence number to use
- seq_num.bak:
Backup of the sequence number. This may be larger than the
- actual sequence number being used at runtime, to prevent re-use
+ actual sequence number being used at runtime, to prevent reuse
of sequence numbers in the event of an unexpected restart.
- ./rpl/:
Directory to store the sequence numbers of remote nodes, as
diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
index 3da0a8c2d227..1ec4f379def0 100644
--- a/mesh/mesh-io-generic.c
+++ b/mesh/mesh-io-generic.c
@@ -709,7 +709,7 @@ static bool send_tx(struct mesh_io *io, struct mesh_io_send_info *info,
else {
/*
* If transmitter is idle, send packets at least twice to
- * guard against in-line cancelation of HCI command chain.
+ * guard against in-line cancellation of HCI command chain.
*/
if (info->type == MESH_IO_TIMING_TYPE_GENERAL &&
!pvt->tx &&
diff --git a/mesh/mesh-io-mgmt.c b/mesh/mesh-io-mgmt.c
index d185f5c9760f..f33f64124bd1 100644
--- a/mesh/mesh-io-mgmt.c
+++ b/mesh/mesh-io-mgmt.c
@@ -143,7 +143,7 @@ done:
pvt->dup_timeout = NULL;
}
-/* Ignore consequtive duplicate advertisements within timeout period */
+/* Ignore consecutive duplicate advertisements within timeout period */
static bool filter_dups(const uint8_t *addr, const uint8_t *adv,
uint32_t instant)
{
diff --git a/mesh/mesh.c b/mesh/mesh.c
index 354aabaf388e..01a1607b1a31 100644
--- a/mesh/mesh.c
+++ b/mesh/mesh.c
@@ -97,7 +97,7 @@ static struct l_queue *pending_queue;
static const char *storage_dir;
-/* Forward static decalrations */
+/* Forward static declarations */
static void def_attach(struct l_timeout *timeout, void *user_data);
static void def_leave(struct l_timeout *timeout, void *user_data);
diff --git a/mesh/net.c b/mesh/net.c
index 1cf74c892ca0..a49df531c933 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -846,7 +846,7 @@ int mesh_net_del_key(struct mesh_net *net, uint16_t idx)
/* Delete associated app keys */
appkey_delete_bound_keys(net, idx);
- /* Disable hearbeat publication on this subnet */
+ /* Disable heartbeat publication on this subnet */
if (idx == net->hb_pub.net_idx)
net->hb_pub.dst = UNASSIGNED_ADDRESS;
@@ -1059,7 +1059,7 @@ static bool msg_in_cache(struct mesh_net *net, uint16_t src, uint32_t seq,
msg = l_queue_find(net->msg_cache, match_cache, &tst);
if (msg) {
- l_debug("Supressing duplicate %4.4x + %6.6x + %8.8x",
+ l_debug("Suppressing duplicate %4.4x + %6.6x + %8.8x",
src, seq, mic);
return true;
}
diff --git a/mesh/net.h b/mesh/net.h
index d385ba16efdd..8a3b4038b6de 100644
--- a/mesh/net.h
+++ b/mesh/net.h
@@ -89,7 +89,7 @@ struct mesh_node;
#define PROXY_FILTER_ACCEPT_LIST 0x00
#define PROXY_FILTER_REJECT_LIST 0x01
-/* Network Tranport Opcodes */
+/* Network Transport Opcodes */
#define NET_OP_SEG_ACKNOWLEDGE 0x00
#define NET_OP_FRND_POLL 0x01
#define NET_OP_FRND_UPDATE 0x02
diff --git a/mesh/node.c b/mesh/node.c
index 65161b7afb3d..7f20e97ea230 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -1329,7 +1329,7 @@ static bool get_element_properties(struct mesh_node *node, const char *path,
/*
* Add configuration server model on the primary element.
- * We allow the application not to specify the presense of
+ * We allow the application not to specify the presence of
* the Configuration Server model, since it's implemented by the
* daemon. If the model is present in the application properties,
* the operation below will be a "no-op".
diff --git a/mesh/prov-acceptor.c b/mesh/prov-acceptor.c
index 27d4964316b3..650309b635cd 100644
--- a/mesh/prov-acceptor.c
+++ b/mesh/prov-acceptor.c
@@ -546,7 +546,7 @@ static void acp_prov_rx(void *user_data, const void *dptr, uint16_t len)
if (prov->conf_inputs.start.auth_action ==
PROV_ACTION_OUT_ALPHA) {
- /* TODO: Construst NUL-term string to pass */
+ /* TODO: Construct NUL-term string to pass */
fail.reason = mesh_agent_display_string(
prov->agent, NULL, NULL, prov);
} else {
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 10/19] monitor: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (8 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 09/19] mesh: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 11/19] obexd: " Bastien Nocera
` (9 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
monitor/analyze.c | 4 ++--
monitor/att.c | 8 ++++----
monitor/avctp.c | 6 +++---
monitor/btmon.rst | 6 +++---
monitor/l2cap.c | 2 +-
monitor/ll.c | 10 +++++-----
monitor/msft.c | 2 +-
monitor/packet.c | 10 +++++-----
8 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/monitor/analyze.c b/monitor/analyze.c
index 3cc482cd9227..c466ff3ca85d 100644
--- a/monitor/analyze.c
+++ b/monitor/analyze.c
@@ -112,7 +112,7 @@ static void tmp_write(void *data, void *user_data)
fprintf(tmp, "%lld %zu\n", plot->x_msec, plot->y_count);
}
-static void plot_draw(struct queue *queue, const char *tittle)
+static void plot_draw(struct queue *queue, const char *title)
{
FILE *gplot;
@@ -132,7 +132,7 @@ static void plot_draw(struct queue *queue, const char *tittle)
fprintf(gplot, "set tics out nomirror\n");
fprintf(gplot, "set log y\n");
fprintf(gplot, "set yrange [0.5:*]\n");
- fprintf(gplot, "plot $data using 1:2 t '%s' w impulses\n", tittle);
+ fprintf(gplot, "plot $data using 1:2 t '%s' w impulses\n", title);
fflush(gplot);
pclose(gplot);
diff --git a/monitor/att.c b/monitor/att.c
index e5630f0e7d32..33d45e960bec 100644
--- a/monitor/att.c
+++ b/monitor/att.c
@@ -1133,9 +1133,9 @@ static bool print_prefer_framing(const struct l2cap_frame *frame)
}
static const struct bitfield_data prefer_phy_table[] = {
- { 0, "LE 1M PHY preffered (0x01)" },
- { 1, "LE 2M PHY preffered (0x02)" },
- { 2, "LE Codec PHY preffered (0x04)" },
+ { 0, "LE 1M PHY preferred (0x01)" },
+ { 1, "LE 2M PHY preferred (0x02)" },
+ { 2, "LE Codec PHY preferred (0x04)" },
{ }
};
@@ -2293,7 +2293,7 @@ static void print_vcs_flag(const struct l2cap_frame *frame)
print_text(COLOR_ERROR, "Volume Flag: invalid size");
goto done;
}
- print_field(" Volume Falg: %u", vol_flag);
+ print_field(" Volume Flag: %u", vol_flag);
done:
if (frame->size)
diff --git a/monitor/avctp.c b/monitor/avctp.c
index 4da448750be5..fda7ff1ffef6 100644
--- a/monitor/avctp.c
+++ b/monitor/avctp.c
@@ -1317,13 +1317,13 @@ static bool avrcp_get_play_status(struct avctp_frame *avctp_frame,
if (!l2cap_frame_get_be32(frame, &interval))
return false;
- print_field("%*cSongLength: 0x%08x (%u miliseconds)",
+ print_field("%*cSongLength: 0x%08x (%u milliseconds)",
(indent - 8), ' ', interval, interval);
if (!l2cap_frame_get_be32(frame, &interval))
return false;
- print_field("%*cSongPosition: 0x%08x (%u miliseconds)",
+ print_field("%*cSongPosition: 0x%08x (%u milliseconds)",
(indent - 8), ' ', interval, interval);
if (!l2cap_frame_get_u8(frame, &status))
@@ -1388,7 +1388,7 @@ response:
if (!l2cap_frame_get_be32(frame, &interval))
return false;
- print_field("%*cPosition: 0x%08x (%u miliseconds)",
+ print_field("%*cPosition: 0x%08x (%u milliseconds)",
(indent - 8), ' ', interval, interval);
break;
case AVRCP_EVENT_BATT_STATUS_CHANGED:
diff --git a/monitor/btmon.rst b/monitor/btmon.rst
index 31970d4fba95..eb5e25182f0f 100644
--- a/monitor/btmon.rst
+++ b/monitor/btmon.rst
@@ -15,7 +15,7 @@ Bluetooth monitor
:Manual section: 1
:Manual group: Linux System Administration
-SYNOPSYS
+SYNOPSIS
========
**btmon** [*OPTIONS* ...]
@@ -91,7 +91,7 @@ OPTIONS
-P, --no-pager Disable pager usage while reading the log file.
-J OPTIONS, --jlink OPTIONS Read data from RTT. Each options are comma(,)
- seprated without spaces.
+ separated without spaces.
.. list-table::
:header-rows: 1
@@ -114,7 +114,7 @@ OPTIONS
- (Optional) Set target interface speed in kHz. Default is **1000**.
-R OPTIONS, --rtt OPTIONS RTT control block parameters. Each options are
- comma(,) seprated without spaces.
+ comma(,) separated without spaces.
.. list-table::
:header-rows: 1
diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index dff183bd0972..8c47f8c89674 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -2283,7 +2283,7 @@ static void smp_pairing_confirm(const struct l2cap_frame *frame)
{
const struct bt_l2cap_smp_pairing_confirm *pdu = frame->data;
- print_hex_field("Confim value", pdu->value, 16);
+ print_hex_field("Confirm value", pdu->value, 16);
}
static void smp_pairing_random(const struct l2cap_frame *frame)
diff --git a/monitor/ll.c b/monitor/ll.c
index feeb13e9282a..34dddcb0bb74 100644
--- a/monitor/ll.c
+++ b/monitor/ll.c
@@ -144,7 +144,7 @@ static void advertising_packet(const void *data, uint8_t size)
}
packet_print_addr("Advertiser address", data + 2, tx_add);
- packet_print_addr("Inititator address", data + 8, rx_add);
+ packet_print_addr("Initiator address", data + 8, rx_add);
break;
case 0x03: /* SCAN_REQ */
@@ -165,7 +165,7 @@ static void advertising_packet(const void *data, uint8_t size)
return;
}
- packet_print_addr("Inititator address", data + 2, tx_add);
+ packet_print_addr("Initiator address", data + 2, tx_add);
packet_print_addr("Advertiser address", data + 8, rx_add);
access_addr = ptr[14] | ptr[15] << 8 |
@@ -256,7 +256,7 @@ static void data_packet(const void *data, uint8_t size, bool padded)
switch (llid) {
case 0x01:
if (length > 0)
- str = "Continuation fragement of L2CAP message";
+ str = "Continuation fragment of L2CAP message";
else
str = "Empty message";
break;
@@ -469,7 +469,7 @@ static void conn_param_req(const void *data, uint8_t size)
print_field("Latency: %d (0x%4.4x)", pdu->latency, pdu->latency);
print_field("Timeout: %d msec (0x%4.4x)", pdu->timeout * 10,
pdu->timeout);
- print_field("Preffered periodicity: %.2f (0x%2.2x)",
+ print_field("Preferred periodicity: %.2f (0x%2.2x)",
pdu->pref_period * 1.25, pdu->pref_period);
print_field("Reference connection event count: %d (0x%2.2x)",
pdu->pref_conn_evt_count, pdu->pref_conn_evt_count);
@@ -498,7 +498,7 @@ static void conn_param_rsp(const void *data, uint8_t size)
print_field("Latency: %d (0x%4.4x)", pdu->latency, pdu->latency);
print_field("Timeout: %d msec (0x%4.4x)", pdu->timeout * 10,
pdu->timeout);
- print_field("Preffered periodicity: %.2f (0x%2.2x)",
+ print_field("Preferred periodicity: %.2f (0x%2.2x)",
pdu->pref_period * 1.25, pdu->pref_period);
print_field("Reference connection event count: %d (0x%2.2x)",
pdu->pref_conn_evt_count, pdu->pref_conn_evt_count);
diff --git a/monitor/msft.c b/monitor/msft.c
index 096fedd59317..24b7bd55444c 100644
--- a/monitor/msft.c
+++ b/monitor/msft.c
@@ -147,7 +147,7 @@ static void le_monitor_advertisement_cmd(const void *data, uint16_t size)
packet_hexdump(irk->irk, size - sizeof(*cmd));
break;
case MSFT_LE_MONITOR_ADV_ADDR:
- print_field("Type: Adderss (0x%2.2x)", cmd->type);
+ print_field("Type: Address (0x%2.2x)", cmd->type);
addr = (void *)cmd->data;
packet_print_addr(NULL, addr->addr, addr->type);
break;
diff --git a/monitor/packet.c b/monitor/packet.c
index f4981730ac4a..21df067b19ce 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -3184,7 +3184,7 @@ static const struct bitfield_data events_le_table[] = {
{ 25, "LE CIS Request" },
{ 26, "LE Create BIG Complete" },
{ 27, "LE Terminate BIG Complete" },
- { 28, "LE BIG Sync Estabilished Complete" },
+ { 28, "LE BIG Sync Established Complete" },
{ 29, "LE BIG Sync Lost" },
{ 30, "LE Request Peer SCA Complete"},
{ 31, "LE Path Loss Threshold" },
@@ -3486,7 +3486,7 @@ static void print_base_annoucement(const uint8_t *data, uint8_t data_len)
goto done;
/* Level 1 - BASE */
- print_field(" Presetation Delay: %u", get_le24(base_data->pd));
+ print_field(" Presentation Delay: %u", get_le24(base_data->pd));
print_field(" Number of Subgroups: %u", base_data->num_subgroups);
/* Level 2 - Subgroups*/
@@ -9776,7 +9776,7 @@ static const struct opcode_data opcode_table[] = {
{ 0x043b, 174, "Logical Link Cancel",
logic_link_cancel_cmd, 2, true,
logic_link_cancel_rsp, 3, true },
- { 0x043c, 175, "Flow Specifcation Modify",
+ { 0x043c, 175, "Flow Specification Modify",
flow_spec_modify_cmd, 34, true },
{ 0x043d, 235, "Enhanced Setup Synchronous Connection",
enhanced_setup_sync_conn_cmd, 59, true },
@@ -11599,7 +11599,7 @@ static void keypress_notify_evt(struct timeval *tv, uint16_t index,
str = "Passkey digit erased";
break;
case 0x03:
- str = "Passkey clared";
+ str = "Passkey cleared";
break;
case 0x04:
str = "Passkey entry completed";
@@ -13290,7 +13290,7 @@ static const struct subevent_data le_meta_event_table[] = {
sizeof(struct bt_hci_evt_le_big_terminate) },
{ BT_HCI_EVT_LE_BIG_SYNC_ESTABILISHED,
"LE Broadcast Isochronous Group Sync "
- "Estabilished", le_big_sync_estabilished_evt,
+ "Established", le_big_sync_estabilished_evt,
sizeof(struct bt_hci_evt_le_big_sync_lost) },
{ BT_HCI_EVT_LE_BIG_SYNC_LOST,
"LE Broadcast Isochronous Group Sync Lost",
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 11/19] obexd: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (9 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 10/19] monitor: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 12/19] peripheral: Fix typo Bastien Nocera
` (8 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
obexd/client/session.c | 2 +-
obexd/plugins/irmc.c | 4 ++--
obexd/plugins/mas.c | 2 +-
obexd/plugins/messages.h | 4 ++--
obexd/plugins/pcsuite.c | 2 +-
obexd/plugins/phonebook-dummy.c | 2 +-
obexd/plugins/phonebook-tracker.c | 34 +++++++++++++++----------------
obexd/src/manager.c | 2 +-
8 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/obexd/client/session.c b/obexd/client/session.c
index 2770b926124c..fa9bd7d17b16 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
@@ -845,7 +845,7 @@ static int session_process_transfer(struct pending_request *p, GError **err)
if (!obc_transfer_start(p->transfer, p->session->obex, err))
return -1;
- DBG("Tranfer(%p) started", p->transfer);
+ DBG("Transfer(%p) started", p->transfer);
p->session->p = p;
return 0;
}
diff --git a/obexd/plugins/irmc.c b/obexd/plugins/irmc.c
index cab97b620ac2..cfd8a45d4029 100644
--- a/obexd/plugins/irmc.c
+++ b/obexd/plugins/irmc.c
@@ -294,7 +294,7 @@ static int irmc_open_cc(struct irmc_session *irmc)
static int irmc_open_cal(struct irmc_session *irmc)
{
- /* no suport yet. Just return an empty buffer. cal.vcs */
+ /* no support yet. Just return an empty buffer. cal.vcs */
DBG("unsupported, returning empty buffer");
if (!irmc->buffer)
@@ -305,7 +305,7 @@ static int irmc_open_cal(struct irmc_session *irmc)
static int irmc_open_nt(struct irmc_session *irmc)
{
- /* no suport yet. Just return an empty buffer. nt.vnt */
+ /* no support yet. Just return an empty buffer. nt.vnt */
DBG("unsupported, returning empty buffer");
if (!irmc->buffer)
diff --git a/obexd/plugins/mas.c b/obexd/plugins/mas.c
index 35974650114c..b9feeb395529 100644
--- a/obexd/plugins/mas.c
+++ b/obexd/plugins/mas.c
@@ -805,7 +805,7 @@ static void *message_notification_filter_open(const char *name, int oflag,
DBG("");
- /* TODO notifcation filter add */
+ /* TODO notification filter add */
mas->finished = TRUE;
*err = 0;
diff --git a/obexd/plugins/messages.h b/obexd/plugins/messages.h
index 535ec303cbdc..fe7d07fee098 100644
--- a/obexd/plugins/messages.h
+++ b/obexd/plugins/messages.h
@@ -271,7 +271,7 @@ int messages_update_inbox(void *session, messages_status_cb callback,
* handle: Unique identifier to the message.
* value: Indicates the new value of the read status for a given message.
* Callback shall be called for every read status update request
- * recieved from MCE.
+ * received from MCE.
* user_data: User data if any to be sent.
*/
int messages_set_read(void *session, const char *handle, uint8_t value,
@@ -283,7 +283,7 @@ int messages_set_read(void *session, const char *handle, uint8_t value,
* handle: Unique identifier to the message.
* value: Indicates the new value of the delete status for a given message.
* Callback shall be called for every delete status update request
- * recieved from MCE.
+ * received from MCE.
* user_data: User data if any to be sent.
*/
int messages_set_delete(void *session, const char *handle, uint8_t value,
diff --git a/obexd/plugins/pcsuite.c b/obexd/plugins/pcsuite.c
index 1755ffbbbd59..0e83a1133320 100644
--- a/obexd/plugins/pcsuite.c
+++ b/obexd/plugins/pcsuite.c
@@ -447,7 +447,7 @@ static ssize_t backup_write(void *object, const void *buf, size_t count)
if (obj->fd != -1) {
ret = write(obj->fd, buf, count);
- DBG("cmd = %s, WRITTING", obj->cmd);
+ DBG("cmd = %s, WRITING", obj->cmd);
if (ret < 0) {
error("backup: cmd = %s", obj->cmd);
diff --git a/obexd/plugins/phonebook-dummy.c b/obexd/plugins/phonebook-dummy.c
index 4d0b705049ce..0dce13f66b52 100644
--- a/obexd/plugins/phonebook-dummy.c
+++ b/obexd/plugins/phonebook-dummy.c
@@ -452,7 +452,7 @@ void *phonebook_pull(const char *name, const struct apparam_field *params,
char *filename, *folder;
/*
- * Main phonebook objects will be created dinamically based on the
+ * Main phonebook objects will be created dynamically based on the
* folder content. All vcards inside the given folder will be appended
* in the "virtual" main phonebook object.
*/
diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c
index 71a91c1ea1ab..61a660561f72 100644
--- a/obexd/plugins/phonebook-tracker.c
+++ b/obexd/plugins/phonebook-tracker.c
@@ -32,8 +32,8 @@
#define TRACKER_RESOURCES_INTERFACE "org.freedesktop.Tracker1.Resources"
#define TRACKER_DEFAULT_CONTACT_ME "http://www.semanticdesktop.org/ontologies/2007/03/22/nco#default-contact-me"
-#define AFFILATION_HOME "Home"
-#define AFFILATION_WORK "Work"
+#define AFFILIATION_HOME "Home"
+#define AFFILIATION_WORK "Work"
#define ADDR_FIELD_AMOUNT 7
#define PULL_QUERY_COL_AMOUNT 23
#define COUNT_QUERY_COL_AMOUNT 1
@@ -45,7 +45,7 @@
#define COL_ADDITIONAL_NAME 4
#define COL_NAME_PREFIX 5
#define COL_NAME_SUFFIX 6
-#define COL_ADDR_AFF 7 /* addresses from affilation */
+#define COL_ADDR_AFF 7 /* addresses from affiliation */
#define COL_BIRTH_DATE 8
#define COL_NICKNAME 9
#define COL_URL 10
@@ -56,7 +56,7 @@
#define COL_AFF_TYPE 15
#define COL_ORG_NAME 16
#define COL_ORG_DEPARTMENT 17
-#define COL_EMAIL_AFF 18 /* email's from affilation (work/home) */
+#define COL_EMAIL_AFF 18 /* email's from affiliation (work/home) */
#define COL_DATE 19
#define COL_SENT 20
#define COL_ANSWERED 21
@@ -1046,11 +1046,11 @@ static void contact_init(struct phonebook_contact *contact,
reply[COL_ANSWERED]);
}
-static enum phonebook_number_type get_phone_type(const char *affilation)
+static enum phonebook_number_type get_phone_type(const char *affiliation)
{
- if (g_strcmp0(AFFILATION_HOME, affilation) == 0)
+ if (g_strcmp0(AFFILIATION_HOME, affiliation) == 0)
return TEL_TYPE_HOME;
- else if (g_strcmp0(AFFILATION_WORK, affilation) == 0)
+ else if (g_strcmp0(AFFILIATION_WORK, affiliation) == 0)
return TEL_TYPE_WORK;
return TEL_TYPE_OTHER;
@@ -1086,7 +1086,7 @@ static void add_aff_number(struct phonebook_contact *contact,
add_phone_number(contact, number, TEL_TYPE_MOBILE);
else
/* if this is no fax/mobile phone, then adding phone number
- * type based on type of the affilation field */
+ * type based on type of the affiliation field */
add_phone_number(contact, number, get_phone_type(aff_type));
failed:
@@ -1099,7 +1099,7 @@ static void contact_add_numbers(struct phonebook_contact *contact,
char **aff_numbers;
int i;
- /* Filling phone numbers from contact's affilation */
+ /* Filling phone numbers from contact's affiliation */
aff_numbers = g_strsplit(reply[COL_PHONE_AFF], MAIN_DELIM, MAX_FIELDS);
if (aff_numbers)
@@ -1110,11 +1110,11 @@ static void contact_add_numbers(struct phonebook_contact *contact,
g_strfreev(aff_numbers);
}
-static enum phonebook_field_type get_field_type(const char *affilation)
+static enum phonebook_field_type get_field_type(const char *affiliation)
{
- if (g_strcmp0(AFFILATION_HOME, affilation) == 0)
+ if (g_strcmp0(AFFILIATION_HOME, affiliation) == 0)
return FIELD_TYPE_HOME;
- else if (g_strcmp0(AFFILATION_WORK, affilation) == 0)
+ else if (g_strcmp0(AFFILIATION_WORK, affiliation) == 0)
return FIELD_TYPE_WORK;
return FIELD_TYPE_OTHER;
@@ -1126,8 +1126,8 @@ static void add_aff_field(struct phonebook_contact *contact,
char **email_parts;
char *type, *email;
- /* Emails from affilation data, are represented as real email
- * string and affilation type - those strings are separated by
+ /* Emails from affiliation data, are represented as real email
+ * string and affiliation type - those strings are separated by
* SUB_DELIM string */
email_parts = g_strsplit(aff_email, SUB_DELIM, 2);
@@ -1156,7 +1156,7 @@ static void contact_add_emails(struct phonebook_contact *contact,
char **aff_emails;
int i;
- /* Emails from affilation */
+ /* Emails from affiliation */
aff_emails = g_strsplit(reply[COL_EMAIL_AFF], MAIN_DELIM, MAX_FIELDS);
if (aff_emails)
@@ -1172,7 +1172,7 @@ static void contact_add_addresses(struct phonebook_contact *contact,
char **aff_addr;
int i;
- /* Addresses from affilation */
+ /* Addresses from affiliation */
aff_addr = g_strsplit(reply[COL_ADDR_AFF], MAIN_DELIM, MAX_FIELDS);
if (aff_addr)
@@ -1188,7 +1188,7 @@ static void contact_add_urls(struct phonebook_contact *contact,
char **aff_url;
int i;
- /* Addresses from affilation */
+ /* Addresses from affiliation */
aff_url = g_strsplit(reply[COL_URL], MAIN_DELIM, MAX_FIELDS);
if (aff_url)
diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index 5a6fd9b4b94e..683dd4ca079d 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -40,7 +40,7 @@
#define AGENT_INTERFACE OBEXD_SERVICE ".Agent1"
#define OBEX_ERROR_REJECT "org.bluez.obex.Error.Rejected"
-#define TIMEOUT 60*1000 /* Timeout for user response (miliseconds) */
+#define TIMEOUT 60*1000 /* Timeout for user response (milliseconds) */
struct agent {
char *bus_name;
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 12/19] peripheral: Fix typo
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (10 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 11/19] obexd: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 13/19] plugins: Fix typos Bastien Nocera
` (7 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
peripheral/gatt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index ff1354cb48d5..2c5e037b9f70 100644
--- a/peripheral/gatt.c
+++ b/peripheral/gatt.c
@@ -105,7 +105,7 @@ static struct gatt_conn *gatt_conn_new(int fd)
conn->att = bt_att_new(fd, false);
if (!conn->att) {
- fprintf(stderr, "Failed to initialze ATT transport layer\n");
+ fprintf(stderr, "Failed to initialize ATT transport layer\n");
free(conn);
return NULL;
}
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 13/19] plugins: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (11 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 12/19] peripheral: Fix typo Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 14/19] profiles: " Bastien Nocera
` (6 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
plugins/policy.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/policy.c b/plugins/policy.c
index 561e3c089e51..66f5c04ccb04 100644
--- a/plugins/policy.c
+++ b/plugins/policy.c
@@ -322,7 +322,7 @@ static void sink_cb(struct btd_service *service, btd_service_state_t old_state,
policy_set_hs_timer(data);
/* Check if service initiate the connection then proceed
- * immediatelly otherwise set timer
+ * immediately otherwise set timer
*/
if (btd_service_is_initiator(service))
policy_connect(data, controller);
@@ -498,7 +498,7 @@ static void source_cb(struct btd_service *service,
data->source_retries = 0;
/* Check if service initiate the connection then proceed
- * immediatelly otherwise set timer
+ * immediately otherwise set timer
*/
if (btd_service_is_initiator(service))
policy_connect(data, target);
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 14/19] profiles: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (12 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 13/19] plugins: Fix typos Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 15/19] src: " Bastien Nocera
` (5 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
profiles/audio/a2dp.c | 2 +-
profiles/audio/avrcp.c | 4 ++--
profiles/audio/bap.c | 2 +-
profiles/audio/bass.c | 2 +-
profiles/audio/micp.c | 6 +++---
profiles/battery/battery.c | 2 +-
profiles/gap/gas.c | 2 +-
profiles/health/mcap.c | 18 +++++++++---------
profiles/input/hog-lib.c | 2 +-
profiles/midi/libmidi.c | 2 +-
profiles/midi/midi.c | 2 +-
11 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 7c0f9c54a9e8..fe58b8fb351d 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -334,7 +334,7 @@ static int error_to_errno(struct avdtp_error *err)
return -perr;
default:
/*
- * An unexpect error has occurred setup may be attempted again.
+ * An unexpected error has occurred setup may be attempted again.
*/
return -EAGAIN;
}
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 831f1dc8bf12..df28bf0b398c 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1324,7 +1324,7 @@ static uint8_t avrcp_handle_get_current_player_value(struct avrcp *session,
len = 0;
/*
- * From sec. 5.7 of AVRCP 1.3 spec, we should igore non-existent IDs
+ * From sec. 5.7 of AVRCP 1.3 spec, we should ignore non-existent IDs
* and send a response with the existent ones. Only if all IDs are
* non-existent we should send an error.
*/
@@ -1376,7 +1376,7 @@ static uint8_t avrcp_handle_set_player_value(struct avrcp *session,
goto err;
/*
- * From sec. 5.7 of AVRCP 1.3 spec, we should igore non-existent IDs
+ * From sec. 5.7 of AVRCP 1.3 spec, we should ignore non-existent IDs
* and set the existent ones. Sec. 5.2.4 is not clear however how to
* indicate that a certain ID was not accepted. If at least one
* attribute is valid, we respond with no parameters. Otherwise an
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 66403fcb7997..a1ca26bdc848 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -2953,7 +2953,7 @@ static uint8_t get_streams_nb_by_state(struct bap_setup *setup)
entry; entry = entry->next) {
ent_setup = entry->data;
- /* Skip the curent stream form testing */
+ /* Skip the current stream form testing */
if (ent_setup == setup) {
stream_cnt++;
continue;
diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c
index 2cda00b690ca..c853fbc4ae89 100644
--- a/profiles/audio/bass.c
+++ b/profiles/audio/bass.c
@@ -546,7 +546,7 @@ static void bis_handler(uint8_t sid, uint8_t bis, uint8_t sgrp,
queue_push_tail(setup->dg->setups, setup);
- /* Only handle streams required by the Brodcast Assistant. */
+ /* Only handle streams required by the Broadcast Assistant. */
if (!bt_bass_check_bis(dg->src, bis))
return;
diff --git a/profiles/audio/micp.c b/profiles/audio/micp.c
index 3f0845dcb328..4f0bde1438ce 100644
--- a/profiles/audio/micp.c
+++ b/profiles/audio/micp.c
@@ -87,7 +87,7 @@ static void micp_data_add(struct micp_data *data)
DBG("data %p", data);
if (queue_find(sessions, NULL, data)) {
- error("data %p allready added", data);
+ error("data %p already added", data);
return;
}
@@ -145,7 +145,7 @@ static void micp_detached(struct bt_micp *micp, void *user_data)
data = queue_find(sessions, match_data, micp);
if (!data) {
- error("unable to find sessio");
+ error("unable to find session");
return;
}
@@ -197,7 +197,7 @@ static int micp_probe(struct btd_service *service)
ba2str(device_get_address(device), addr);
DBG("%s", addr);
- /*Ignore, if we probed for this device allready */
+ /*Ignore, if we probed for this device already */
if (data) {
error("Profile probed twice for this device");
return -EINVAL;
diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index 5318d40d12b4..5be78ab14c7b 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -151,7 +151,7 @@ static void read_initial_battery_level_cb(bool success,
struct batt *batt = user_data;
if (!success) {
- DBG("Reading battery level failed with ATT errror: %u",
+ DBG("Reading battery level failed with ATT error: %u",
att_ecode);
return;
}
diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index 08aaf19cb332..a4831d38f43b 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
@@ -99,7 +99,7 @@ static void read_device_name_cb(bool success, uint8_t att_ecode,
char *name;
if (!success) {
- DBG("Reading device name failed with ATT errror: %u",
+ DBG("Reading device name failed with ATT error: %u",
att_ecode);
return;
}
diff --git a/profiles/health/mcap.c b/profiles/health/mcap.c
index 2e4214a6984f..74fffa71a2d1 100644
--- a/profiles/health/mcap.c
+++ b/profiles/health/mcap.c
@@ -2416,7 +2416,7 @@ static gboolean read_btclock(struct mcap_mcl *mcl, uint32_t *btclock,
/*
* FIXME: btd_adapter_read_clock(...) always return FALSE, current
* code doesn't support CSP (Clock Synchronization Protocol). To avoid
- * build dependancy on struct 'btd_adapter', removing this code.
+ * build dependency on struct 'btd_adapter', removing this code.
*/
return FALSE;
@@ -2506,7 +2506,7 @@ static gboolean initialize_caps(struct mcap_mcl *mcl)
_caps.ts_acc = 20; /* ppm, estimated */
- /* A little exercise before measuing latency */
+ /* A little exercise before measuring latency */
clock_gettime(CLK, &t1);
read_btclock_retry(mcl, &btclock, &btaccuracy);
@@ -2878,7 +2878,7 @@ static void proc_sync_set_req(struct mcap_mcl *mcl, uint8_t *cmd, uint32_t len)
return;
}
- /* Convert to miliseconds */
+ /* Convert to milliseconds */
phase2_delay = bt2ms(phase2_delay);
if (phase2_delay > 61*1000) {
@@ -2961,12 +2961,12 @@ static void proc_sync_cap_rsp(struct mcap_mcl *mcl, uint8_t *cmd, uint32_t len)
gpointer user_data;
if (mcl->csp->csp_req != MCAP_MD_SYNC_CAP_REQ) {
- DBG("CSP: got unexpected cap respose");
+ DBG("CSP: got unexpected cap response");
return;
}
if (!mcl->csp->csp_priv_data) {
- DBG("CSP: no priv data for cap respose");
+ DBG("CSP: no priv data for cap response");
return;
}
@@ -2979,7 +2979,7 @@ static void proc_sync_cap_rsp(struct mcap_mcl *mcl, uint8_t *cmd, uint32_t len)
mcl->csp->csp_req = 0;
if (len != sizeof(mcap_md_sync_cap_rsp)) {
- DBG("CSP: got corrupted cap respose");
+ DBG("CSP: got corrupted cap response");
return;
}
@@ -3009,12 +3009,12 @@ static void proc_sync_set_rsp(struct mcap_mcl *mcl, uint8_t *cmd, uint32_t len)
gpointer user_data;
if (mcl->csp->csp_req != MCAP_MD_SYNC_SET_REQ) {
- DBG("CSP: got unexpected set respose");
+ DBG("CSP: got unexpected set response");
return;
}
if (!mcl->csp->csp_priv_data) {
- DBG("CSP: no priv data for set respose");
+ DBG("CSP: no priv data for set response");
return;
}
@@ -3027,7 +3027,7 @@ static void proc_sync_set_rsp(struct mcap_mcl *mcl, uint8_t *cmd, uint32_t len)
mcl->csp->csp_req = 0;
if (len != sizeof(mcap_md_sync_set_rsp)) {
- DBG("CSP: got corrupted set respose");
+ DBG("CSP: got corrupted set response");
return;
}
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 22599f71a394..dbf4dad96bc5 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -1132,7 +1132,7 @@ static void proto_mode_read_cb(guint8 status, const guint8 *pdu, guint16 plen,
if (value == HOG_PROTO_MODE_BOOT) {
uint8_t nval = HOG_PROTO_MODE_REPORT;
- DBG("HoG is operating in Boot Procotol Mode");
+ DBG("HoG is operating in Boot Protocol Mode");
gatt_write_cmd(hog->attrib, hog->proto_mode_handle, &nval,
sizeof(nval), NULL, NULL);
diff --git a/profiles/midi/libmidi.c b/profiles/midi/libmidi.c
index 5b77cd3f52f1..6f2914a8c2ef 100644
--- a/profiles/midi/libmidi.c
+++ b/profiles/midi/libmidi.c
@@ -423,7 +423,7 @@ size_t midi_read_raw(struct midi_read_parser *parser, const uint8_t *data,
snd_seq_ev_set_sysex(ev, parser->sysex_stream.len,
parser->sysex_stream.data);
- midi_size = 1; /* timestampLow was alredy processed */
+ midi_size = 1; /* timestampLow was already processed */
goto _finish;
case 0x80 ... 0xEF:
diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c
index bab309bca7c3..0976842e80b2 100644
--- a/profiles/midi/midi.c
+++ b/profiles/midi/midi.c
@@ -319,7 +319,7 @@ static int midi_accept(struct btd_service *service)
err = snd_seq_client_id(midi->seq_handle);
if (err < 0) {
- error("Could retreive ALSA client: %s (%d)", snd_strerror(err), err);
+ error("Could retrieve ALSA client: %s (%d)", snd_strerror(err), err);
goto _err_handle;
}
midi->seq_client_id = err;
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 15/19] src: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (13 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 14/19] profiles: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 16/19] shared: " Bastien Nocera
` (4 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
src/adapter.c | 24 ++++++++++++------------
src/adv_monitor.c | 4 ++--
src/device.c | 10 +++++-----
src/main.conf | 4 ++--
src/profile.c | 4 ++--
5 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/adapter.c b/src/adapter.c
index 70141e1542d7..67489b41f7f9 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -238,7 +238,7 @@ struct service_auth {
struct btd_adapter_pin_cb_iter {
GSList *it; /* current callback function */
- unsigned int attempt; /* numer of times it() was called */
+ unsigned int attempt; /* number of times it() was called */
/* When the iterator reaches the end, it is NULL and attempt is 0 */
};
@@ -1655,7 +1655,7 @@ static void stop_passive_scanning(struct btd_adapter *adapter)
DBG("");
/* If there are any normal discovery clients passive scanning
- * wont be running */
+ * won't be running */
if (adapter->discovery_list)
return;
@@ -2267,7 +2267,7 @@ static int merge_discovery_filters(struct btd_adapter *adapter, int *rssi,
*rssi = HCI_RSSI_INVALID;
/*
- * Empty_uuid variable determines wether there was any filter with no
+ * Empty_uuid variable determines whether there was any filter with no
* uuids. In this case someone might be looking for all devices in
* certain proximity, and we need to have empty uuids in kernel filter.
*/
@@ -2282,7 +2282,7 @@ static int merge_discovery_filters(struct btd_adapter *adapter, int *rssi,
/*
* It there is both regular and filtered scan running, then
- * clear whole fitler to report all devices.
+ * clear whole filter to report all devices.
*/
*transport = adapter_scan_type;
*rssi = HCI_RSSI_INVALID;
@@ -2314,7 +2314,7 @@ static void populate_mgmt_filter_uuids(uint8_t (*mgmt_uuids)[16], GSList *uuids)
/*
* This method merges all adapter filters into one that will be send to kernel.
* cp_ptr is set to null when regular non-filtered discovery is needed,
- * otherwise it's pointing to filter. Returns 0 on succes, -1 on error
+ * otherwise it's pointing to filter. Returns 0 on success, -1 on error
*/
static int discovery_filter_to_mgmt_cp(struct btd_adapter *adapter,
struct mgmt_cp_start_service_discovery **cp_ptr)
@@ -4325,7 +4325,7 @@ static void set_privacy_complete(uint8_t status, uint16_t length,
return;
}
- DBG("Successfuly set privacy for index %u", adapter->dev_id);
+ DBG("Successfully set privacy for index %u", adapter->dev_id);
}
static int set_privacy(struct btd_adapter *adapter, uint8_t privacy)
@@ -5706,7 +5706,7 @@ void adapter_auto_connect_add(struct btd_adapter *adapter,
bdaddr_type = btd_device_get_bdaddr_type(device);
if (bdaddr_type == BDADDR_BREDR) {
- DBG("auto-connection feature is not avaiable for BR/EDR");
+ DBG("auto-connection feature is not available for BR/EDR");
return;
}
@@ -5838,7 +5838,7 @@ void adapter_auto_connect_remove(struct btd_adapter *adapter,
bdaddr_type = btd_device_get_bdaddr_type(device);
if (bdaddr_type == BDADDR_BREDR) {
- DBG("auto-connection feature is not avaiable for BR/EDR");
+ DBG("auto-connection feature is not available for BR/EDR");
return;
}
@@ -8457,7 +8457,7 @@ static void bonding_attempt_complete(struct btd_adapter *adapter,
device = btd_adapter_find_device(adapter, bdaddr, addr_type);
if (status == MGMT_STATUS_AUTH_FAILED && adapter->pincode_requested) {
- /* On faliure, issue a bonding_retry if possible. */
+ /* On failure, issue a bonding_retry if possible. */
if (device != NULL) {
if (device_bonding_attempt_retry(device) == 0)
return;
@@ -10322,7 +10322,7 @@ static void read_info_complete(uint8_t status, uint16_t length,
case BT_MODE_BREDR:
if (!(adapter->supported_settings & MGMT_SETTING_BREDR)) {
btd_error(adapter->dev_id,
- "Ignoring adapter withouth BR/EDR support");
+ "Ignoring adapter without BR/EDR support");
goto failed;
}
@@ -10336,7 +10336,7 @@ static void read_info_complete(uint8_t status, uint16_t length,
case BT_MODE_LE:
if (!(adapter->supported_settings & MGMT_SETTING_LE)) {
btd_error(adapter->dev_id,
- "Ignoring adapter withouth LE support");
+ "Ignoring adapter without LE support");
goto failed;
}
@@ -10514,7 +10514,7 @@ failed:
* Remove adapter from list in case of a failure.
*
* Leaving an adapter structure around for a controller that can
- * not be initilized makes no sense at the moment.
+ * not be initialized makes no sense at the moment.
*
* This is a simplification to avoid constant checks if the
* adapter is ready to do anything.
diff --git a/src/adv_monitor.c b/src/adv_monitor.c
index cb38916fc28b..4323063e2787 100644
--- a/src/adv_monitor.c
+++ b/src/adv_monitor.c
@@ -102,7 +102,7 @@ struct rssi_parameters {
int8_t low_rssi; /* Low RSSI threshold */
uint16_t low_rssi_timeout; /* Low RSSI threshold timeout */
uint16_t sampling_period; /* Merge packets in the same timeslot.
- * Currenly unimplemented in user space.
+ * Currently unimplemented in user space.
* Used only to pass data to kernel.
*/
};
@@ -406,7 +406,7 @@ static void merged_pattern_replace(
/* If the RSSI are the same then nothing needs to be done, except on
* the case where pattern is being removed. In that case, we need to
* re-add the pattern.
- * high_rssi_timeout is purposedly left out in the comparison since
+ * high_rssi_timeout is purposely left out in the comparison since
* the value is ignored upon submission to kernel.
*/
if (merged_pattern->rssi.high_rssi == rssi->high_rssi &&
diff --git a/src/device.c b/src/device.c
index 2892b75e7e25..a50d9ad5cee5 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3240,7 +3240,7 @@ static DBusMessage *pair_device(DBusConnection *conn, DBusMessage *msg,
return btd_error_in_progress(msg);
/* Only use this selection algorithms when device is combo
- * chip. Ohterwise, it will use the wrong bearer to establish
+ * chip. Otherwise, it will use the wrong bearer to establish
* a connection if the device is already paired, which will
* stall the pairing procedure. For example, for a BLE only
* device, if the device is already paired, and upper layer
@@ -4692,7 +4692,7 @@ static void gatt_service_removed(struct gatt_db_attribute *attr,
if (l && !g_slist_find_custom(device->primaries, prim->uuid,
prim_uuid_cmp)) {
/*
- * If this happend since the db was cleared for a non-bonded
+ * If this happened since the db was cleared for a non-bonded
* device, then don't remove the btd_service just yet. We do
* this so that we can avoid re-probing the profile if the same
* GATT service is found on the device on re-connection.
@@ -5061,7 +5061,7 @@ void btd_device_set_connectable(struct btd_device *device, bool connectable)
* case it has first been discovered over BR/EDR and has a private
* address when discovered over LE for the first time. In such a case we
* need to inherit critical values from the duplicate so that we don't
- * ovewrite them when writing to storage. The next time bluetoothd
+ * overwrite them when writing to storage. The next time bluetoothd
* starts the device will show up as a single instance.
*/
void device_merge_duplicate(struct btd_device *dev, struct btd_device *dup)
@@ -6972,7 +6972,7 @@ void device_bonding_complete(struct btd_device *device, uint8_t bdaddr_type,
* request
*/
if (state->svc_resolved && bonding) {
- /* Attept to store services for this device failed because it
+ /* Attempt to store services for this device failed because it
* was not paired. Now that we're paired retry. */
store_gatt_db(device);
@@ -7111,7 +7111,7 @@ static gboolean device_bonding_retry(gpointer data)
DBG("retrying bonding");
bonding->retry_timer = 0;
- /* Restart the bonding timer to the begining of the pairing. If not
+ /* Restart the bonding timer to the beginning of the pairing. If not
* pincode request/reply occurs during this retry,
* device_bonding_last_duration() will return a consistent value from
* this point. */
diff --git a/src/main.conf b/src/main.conf
index ada9b9b5ebf1..86759d53c1f2 100644
--- a/src/main.conf
+++ b/src/main.conf
@@ -207,7 +207,7 @@
#ScanWindowSuspend=
# LE scanning parameters used for active scanning supporting discovery
-# proceedure
+# procedure
#ScanIntervalDiscovery=
#ScanWindowDiscovery=
@@ -220,7 +220,7 @@
#ScanIntervalConnect=
#ScanWindowConnect=
-# LE default connection parameters. These values are superceeded by any
+# LE default connection parameters. These values are superseded by any
# specific values provided via the Load Connection Parameters interface
#MinConnectionInterval=
#MaxConnectionInterval=
diff --git a/src/profile.c b/src/profile.c
index ad204362816d..8a25a97cc62b 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -1262,7 +1262,7 @@ static void ext_confirm(GIOChannel *io, gpointer user_data)
DBG("incoming connect from %s", addr);
if (!btd_adapter_is_uuid_allowed(adapter_find(&src), uuid)) {
- info("UUID %s is not allowed. Igoring the connection", uuid);
+ info("UUID %s is not allowed. Ignoring the connection", uuid);
return;
}
@@ -1304,7 +1304,7 @@ static void ext_direct_connect(GIOChannel *io, GError *err, gpointer user_data)
}
if (!btd_adapter_is_uuid_allowed(adapter_find(&src), uuid)) {
- info("UUID %s is not allowed. Igoring the connection", uuid);
+ info("UUID %s is not allowed. Ignoring the connection", uuid);
return;
}
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 16/19] shared: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (14 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 15/19] src: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 17/19] test: " Bastien Nocera
` (3 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
src/shared/att.c | 2 +-
src/shared/bap.c | 8 ++++----
src/shared/crypto.c | 2 +-
src/shared/gatt-client.c | 2 +-
src/shared/gatt-db.c | 4 ++--
src/shared/gatt-server.c | 2 +-
src/shared/ringbuf.c | 2 +-
src/shared/util.c | 4 ++--
src/shared/vcp.c | 2 +-
9 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/shared/att.c b/src/shared/att.c
index 14d346ca7ad3..c29e914c654a 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -669,7 +669,7 @@ static bool disconnect_cb(struct io *io, void *user_data)
DBG(att, "Channel %p disconnected: %s", chan, strerror(err));
- /* Dettach channel */
+ /* Detach channel */
queue_remove(att->chans, chan);
if (chan->pending_req) {
diff --git a/src/shared/bap.c b/src/shared/bap.c
index 40e1c974b111..33d614aca45d 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -1033,7 +1033,7 @@ static void stream_notify_config(struct bt_bap_stream *stream)
status->id = ep->id;
status->state = ep->state;
- /* Initialize preffered settings if not set */
+ /* Initialize preferred settings if not set */
if (!lpac->qos.phy)
lpac->qos.phy = 0x02;
@@ -1055,7 +1055,7 @@ static void stream_notify_config(struct bt_bap_stream *stream)
if (!lpac->qos.ppd_max)
lpac->qos.ppd_max = lpac->qos.pd_max;
- /* TODO:Add support for setting preffered settings on bt_bap_pac */
+ /* TODO:Add support for setting preferred settings on bt_bap_pac */
config = (void *)status->params;
config->framing = lpac->qos.framing;
config->phy = lpac->qos.phy;
@@ -3681,7 +3681,7 @@ static void ascs_ase_cp_write(struct gatt_db_attribute *attrib,
DBG(bap, "%s", handler->str);
/* Set in_cp_write so ASE notification are not sent ahead of
- * CP notifcation.
+ * CP notification.
*/
bap->in_cp_write = true;
@@ -4884,7 +4884,7 @@ static void read_pac_supported_context(bool success, uint8_t att_ecode,
const struct bt_pacs_context *ctx = (void *)value;
if (!success) {
- DBG(bap, "Unable to read PAC Supproted Context: error 0x%02x",
+ DBG(bap, "Unable to read PAC Supported Context: error 0x%02x",
att_ecode);
return;
}
diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index 5449621b55ea..43d7f7c5c4b7 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -496,7 +496,7 @@ static inline void u128_xor(const uint8_t p[16], const uint8_t q[16],
*
* ra is concatenated with ia and padding to generate p2 which is XORed
* with the result of the security function e using p1 as the input
- * paremter plaintextData and is then used as the 128-bit input
+ * parameter plaintextData and is then used as the 128-bit input
* parameter plaintextData to security function e:
*
* p2 = padding || ia || ra
diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index ec23415086c3..26b4d1c7cb1c 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -79,7 +79,7 @@ struct bt_gatt_client {
/*
* Queue of long write requests. An error during "prepare write"
* requests can result in a cancel through "execute write". To prevent
- * cancelation of prepared writes to the wrong attribute and multiple
+ * cancellation of prepared writes to the wrong attribute and multiple
* requests to the same attribute that may result in a corrupted final
* value, we avoid interleaving prepared writes.
*/
diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index 8951079beef1..332af2d8aba4 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
@@ -493,7 +493,7 @@ static void notify_service_changed(struct gatt_db *db,
queue_foreach(db->notify_list, handle_notify, &data);
- /* Tigger hash update */
+ /* Trigger hash update */
if (!db->hash_id && db->crypto)
db->hash_id = timeout_add(HASH_UPDATE_TIMEOUT, db_hash_update,
db, NULL);
@@ -2099,7 +2099,7 @@ bool gatt_db_attribute_set_fixed_length(struct gatt_db_attribute *attrib,
if (attrib->service->attributes[0] == attrib)
return false;
- /* If attribute is a characteristic declaration ajust to its value */
+ /* If attribute is a characteristic declaration adjust to its value */
if (!bt_uuid_cmp(&characteristic_uuid, &attrib->uuid)) {
int i;
diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c
index b30ec8c6acc9..f8ed9a505bf0 100644
--- a/src/shared/gatt-server.c
+++ b/src/shared/gatt-server.c
@@ -887,7 +887,7 @@ static uint8_t get_read_rsp_opcode(uint8_t opcode)
* Should never happen
*
* TODO: It would be nice to have a debug-mode assert macro
- * for development builds. This way bugs could be easily catched
+ * for development builds. This way bugs could be easily caught
* during development and there would be self documenting code
* that wouldn't be crash release builds.
*/
diff --git a/src/shared/ringbuf.c b/src/shared/ringbuf.c
index 1b7adbb4f513..957d355f9b36 100644
--- a/src/shared/ringbuf.c
+++ b/src/shared/ringbuf.c
@@ -36,7 +36,7 @@ struct ringbuf {
#define RINGBUF_RESET 0
-/* Find last (most siginificant) set bit */
+/* Find last (most significant) set bit */
static inline unsigned int fls(unsigned int x)
{
return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;
diff --git a/src/shared/util.c b/src/shared/util.c
index 5d3a14d96347..6fa451d329bd 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -741,7 +741,7 @@ static const struct {
{ 0x111d, "Imaging Referenced Objects" },
{ 0x111e, "Handsfree" },
{ 0x111f, "Handsfree Audio Gateway" },
- { 0x1120, "Direct Printing Refrence Objects Service" },
+ { 0x1120, "Direct Printing Reference Objects Service" },
{ 0x1121, "Reflected UI" },
{ 0x1122, "Basic Printing" },
{ 0x1123, "Printing Status" },
@@ -855,7 +855,7 @@ static const struct {
{ 0x2902, "Client Characteristic Configuration" },
{ 0x2903, "Server Characteristic Configuration" },
{ 0x2904, "Characteristic Format" },
- { 0x2905, "Characteristic Aggregate Formate" },
+ { 0x2905, "Characteristic Aggregate Format" },
{ 0x2906, "Valid Range" },
{ 0x2907, "External Report Reference" },
{ 0x2908, "Report Reference" },
diff --git a/src/shared/vcp.c b/src/shared/vcp.c
index c96ad4376131..e614ff61f550 100644
--- a/src/shared/vcp.c
+++ b/src/shared/vcp.c
@@ -37,7 +37,7 @@
#define VOCS_VOL_OFFSET_UPPER_LIMIT 255
#define VOCS_VOL_OFFSET_LOWER_LIMIT -255
-/* Apllication Error Code */
+/* Application Error Code */
#define BT_ATT_ERROR_INVALID_CHANGE_COUNTER 0x80
#define BT_ATT_ERROR_OPCODE_NOT_SUPPORTED 0x81
#define BT_ATT_ERROR_VALUE_OUT_OF_RANGE 0x82
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 17/19] test: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (15 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 16/19] shared: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 18/19] unit: " Bastien Nocera
` (2 subsequent siblings)
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
test/example-gatt-client | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/example-gatt-client b/test/example-gatt-client
index 38ca97eae580..f9fca82c9eea 100755
--- a/test/example-gatt-client
+++ b/test/example-gatt-client
@@ -201,7 +201,7 @@ def main():
continue
chrcs.append(path)
- # List sevices found
+ # List services found
for path, interfaces in objects.items():
if GATT_SERVICE_IFACE not in interfaces.keys():
continue
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 18/19] unit: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (16 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 17/19] test: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-03 8:53 ` [PATCH BlueZ 19/19] tools: " Bastien Nocera
2025-07-07 18:10 ` [PATCH BlueZ 00/19] " patchwork-bot+bluetooth
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
unit/test-bap.c | 2 +-
unit/test-vcp.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/unit/test-bap.c b/unit/test-bap.c
index f65df69ef373..a7a9448e7972 100644
--- a/unit/test-bap.c
+++ b/unit/test-bap.c
@@ -419,7 +419,7 @@ static void gatt_notify_cb(struct gatt_db_attribute *attrib,
}
static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib,
- unsigned int id, uint16_t offest,
+ unsigned int id, uint16_t offset,
uint8_t opcode, struct bt_att *att,
void *user_data)
{
diff --git a/unit/test-vcp.c b/unit/test-vcp.c
index 2a6e77eb08b6..cd6d53c0121d 100644
--- a/unit/test-vcp.c
+++ b/unit/test-vcp.c
@@ -138,7 +138,7 @@ static void gatt_notify_cb(struct gatt_db_attribute *attrib,
}
static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib,
- unsigned int id, uint16_t offest,
+ unsigned int id, uint16_t offset,
uint8_t opcode, struct bt_att *att,
void *user_data)
{
@@ -1825,7 +1825,7 @@ static void test_server(const void *user_data)
VOCS_READ_CHAR_AUD_LOC
/*
* VOCS/SR/CP/BV-01-C [Set Volume Offset]
- * Do Initial Condition Proedures
+ * Do Initial Condition Procedures
* 1. The Lower Tester executes the GATT Read Characteristic
* Value sub-procedure for the Volume Offset State characteristic.
* Repeat steps 2-4 for (255 - Change_Counter value) + 1 times.
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* [PATCH BlueZ 19/19] tools: Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (17 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 18/19] unit: " Bastien Nocera
@ 2025-07-03 8:53 ` Bastien Nocera
2025-07-07 18:10 ` [PATCH BlueZ 00/19] " patchwork-bot+bluetooth
19 siblings, 0 replies; 23+ messages in thread
From: Bastien Nocera @ 2025-07-03 8:53 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Bastien Nocera
Found using codespell.
---
tools/avtest.c | 2 +-
tools/bneptest.c | 2 +-
tools/btattach.rst | 2 +-
tools/btgatt-client.c | 4 ++--
tools/btgatt-server.c | 2 +-
tools/btpclient.c | 18 +++++++++---------
tools/btpclientctl.c | 2 +-
tools/ciptool.c | 2 +-
tools/hciattach_ath3k.c | 2 +-
tools/hciconfig.rst | 2 +-
tools/l2cap-tester.c | 4 ++--
tools/l2test.c | 6 +++---
tools/mesh-cfgclient.c | 2 +-
tools/mesh-gatt/mesh-net.h | 2 +-
tools/mesh-gatt/node.c | 2 +-
tools/mesh-gatt/prov.c | 4 ++--
tools/meshctl.c | 2 +-
tools/mgmt-tester.c | 10 +++++-----
tools/parser/att.c | 2 +-
tools/parser/avrcp.c | 12 ++++++------
tools/parser/hci.c | 6 +++---
tools/parser/l2cap.c | 2 +-
tools/parser/parser.h | 2 +-
tools/parser/rfcomm.h | 4 ++--
tools/parser/smp.c | 4 ++--
tools/rctest.c | 6 +++---
26 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/tools/avtest.c b/tools/avtest.c
index a52662d80e11..c68d7b5a3e3f 100644
--- a/tools/avtest.c
+++ b/tools/avtest.c
@@ -258,7 +258,7 @@ static void process_avdtp(int srv_sk, int sk, unsigned char reject,
if (reject == AVDTP_GET_CAPABILITIES) {
hdr->message_type = AVDTP_MSG_TYPE_REJECT;
buf[2] = 0x29; /* Unsupported configuration */
- printf("Rejecting get capabilties command\n");
+ printf("Rejecting get capabilities command\n");
len = write(sk, buf, 3);
} else if (fragment) {
struct avdtp_start_header *start = (void *) buf;
diff --git a/tools/bneptest.c b/tools/bneptest.c
index 76ec1cfcd477..c0c123f63614 100644
--- a/tools/bneptest.c
+++ b/tools/bneptest.c
@@ -502,7 +502,7 @@ static void usage(void)
printf("Connect Mode:\n"
"\t-c connect <dst_addr>\n"
"\t-r remote role <16 bit svc value>\n"
- "\t-l local role <16 bit svc valu>\n");
+ "\t-l local role <16 bit svc value>\n");
printf("Listen Mode:\n"
"\t-s start server listening\n");
printf("Send control command:\n"
diff --git a/tools/btattach.rst b/tools/btattach.rst
index e51772ea4d9e..b7ae09a11931 100644
--- a/tools/btattach.rst
+++ b/tools/btattach.rst
@@ -60,7 +60,7 @@ OPTIONS
* - qca
--S baudrate, --speed baudrate Specify wich baudrate to use
+-S baudrate, --speed baudrate Specify which baudrate to use
-N, --noflowctl Disable flow control
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index b47914da3d44..f64d5bcf2d56 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -93,7 +93,7 @@ static const char *ecode_to_string(uint8_t ecode)
case BT_ATT_ERROR_ATTRIBUTE_NOT_LONG:
return "Attribute Not Long";
case BT_ATT_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE:
- return "Insuficient Encryption Key Size";
+ return "Insufficient Encryption Key Size";
case BT_ATT_ERROR_INVALID_ATTRIBUTE_VALUE_LEN:
return "Invalid Attribute value len";
case BT_ATT_ERROR_UNLIKELY:
@@ -178,7 +178,7 @@ static struct client *client_create(int fd, uint16_t mtu)
cli->att = bt_att_new(fd, false);
if (!cli->att) {
- fprintf(stderr, "Failed to initialze ATT transport layer\n");
+ fprintf(stderr, "Failed to initialize ATT transport layer\n");
bt_att_unref(cli->att);
free(cli);
return NULL;
diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c
index 90a6c9b0a2cd..9d05abd900c9 100644
--- a/tools/btgatt-server.c
+++ b/tools/btgatt-server.c
@@ -547,7 +547,7 @@ static struct server *server_create(int fd, uint16_t mtu, bool hr_visible)
server->att = bt_att_new(fd, false);
if (!server->att) {
- fprintf(stderr, "Failed to initialze ATT transport layer\n");
+ fprintf(stderr, "Failed to initialize ATT transport layer\n");
goto fail;
}
diff --git a/tools/btpclient.c b/tools/btpclient.c
index 055270edb51b..5223c6c2e4b5 100644
--- a/tools/btpclient.c
+++ b/tools/btpclient.c
@@ -465,7 +465,7 @@ static void unreg_advertising_reply(struct l_dbus_proxy *proxy,
l_info("Unable to remove ad instance");
if (!l_dbus_object_remove_interface(dbus, AD_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_unregister_interface(dbus, AD_IFACE))
l_info("Unable to unregister ad interface");
@@ -500,7 +500,7 @@ static void reset_unreg_agent_reply(struct l_dbus_proxy *proxy,
if (!l_dbus_object_remove_interface(dbus, AG_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_object_remove_interface(dbus, AG_PATH, AG_IFACE))
l_info("Unable to remove agent instance");
if (!l_dbus_unregister_interface(dbus, AG_IFACE))
@@ -1074,7 +1074,7 @@ static void create_advertising_data(uint8_t adv_data_len, const uint8_t *data)
case AD_TYPE_TX_POWER:
ad.tx_power = true;
- /* XXX Value is ommited cause, stack fills it */
+ /* XXX Value is omitted cause, stack fills it */
break;
case AD_TYPE_SERVICE_DATA_UUID16:
@@ -1254,7 +1254,7 @@ static void stop_advertising_reply(struct l_dbus_proxy *proxy,
l_info("Unable to remove ad instance");
if (!l_dbus_object_remove_interface(dbus, AD_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_unregister_interface(dbus, AD_IFACE))
l_info("Unable to unregister ad interface");
@@ -2179,7 +2179,7 @@ static void rereg_unreg_agent_reply(struct l_dbus_proxy *proxy,
if (!l_dbus_object_remove_interface(dbus, AG_PATH,
L_DBUS_INTERFACE_PROPERTIES))
- l_info("Unable to remove propety instance");
+ l_info("Unable to remove property instance");
if (!l_dbus_object_remove_interface(dbus, AG_PATH, AG_IFACE))
l_info("Unable to remove agent instance");
if (!l_dbus_unregister_interface(dbus, AG_IFACE))
@@ -2298,7 +2298,7 @@ static void btp_gap_pair(uint8_t index, const void *param, uint16_t length,
if (!device)
goto failed;
- /* This command is asynchronous, send reply immediatelly to not block
+ /* This command is asynchronous, send reply immediately to not block
* pairing process eg. passkey request.
*/
btp_send(btp, BTP_GAP_SERVICE, BTP_OP_GAP_PAIR, adapter->index, 0,
@@ -2494,7 +2494,7 @@ static void btp_gap_confirm_entry_rsp(uint8_t index, const void *param,
} else {
reply = l_dbus_message_new_error(ag.pending_req,
"org.bluez.Error.Rejected",
- "Passkey missmatch");
+ "Passkey mismatch");
}
l_dbus_send_with_reply(dbus, ag.pending_req, passkey_confirm_rsp_reply,
@@ -2864,7 +2864,7 @@ static void extract_settings(struct l_dbus_proxy *proxy, uint32_t *current,
*supported |= BTP_GAP_SETTING_PRIVACY;
/* *supported |= BTP_GAP_SETTING_STATIC_ADDRESS; */
- /* TODO not all info is availbe via D-Bus API so some are assumed to be
+ /* TODO not all info is available via D-Bus API so some are assumed to be
* enabled by bluetoothd or simply hardcoded until API is extended
*/
*current |= BTP_GAP_SETTING_CONNECTABLE;
@@ -3075,7 +3075,7 @@ static void property_changed(struct l_dbus_proxy *proxy, const char *name,
btp_gap_device_connection_ev(proxy, prop);
} else if (!strcmp(name, "AddressType")) {
- /* Addres property change came first along with address
+ /* Address property change came first along with address
* type.
*/
btp_identity_resolved_ev(proxy);
diff --git a/tools/btpclientctl.c b/tools/btpclientctl.c
index f6f61ed5d651..1d89b51b55e9 100644
--- a/tools/btpclientctl.c
+++ b/tools/btpclientctl.c
@@ -328,7 +328,7 @@ static void null_evt(const void *data, uint16_t size)
}
static const struct indexstr_data error_table[] = {
- { 0x01, "Faile" },
+ { 0x01, "Failed" },
{ 0x02, "Unknown Command" },
{ 0x03, "Not Ready" },
{ 0x04, "Invalid Index" },
diff --git a/tools/ciptool.c b/tools/ciptool.c
index 0d6272da9a71..4ba33f87ec6e 100644
--- a/tools/ciptool.c
+++ b/tools/ciptool.c
@@ -300,7 +300,7 @@ static void cmd_release(int ctl, bdaddr_t *bdaddr, int argc, char **argv)
return;
if (cl.cnum != 1) {
- fprintf(stderr, "You have to specifiy the device address.\n");
+ fprintf(stderr, "You have to specify the device address.\n");
exit(1);
}
diff --git a/tools/hciattach_ath3k.c b/tools/hciattach_ath3k.c
index 8922b480f629..5bd63582267d 100644
--- a/tools/hciattach_ath3k.c
+++ b/tools/hciattach_ath3k.c
@@ -806,7 +806,7 @@ static int ath_ps_download(int fd)
FILE *stream;
/*
- * Verfiy firmware version. depending on it select the PS
+ * Verify firmware version. depending on it select the PS
* config file to download.
*/
if (get_device_type(fd, &dev_type) < 0) {
diff --git a/tools/hciconfig.rst b/tools/hciconfig.rst
index 992aafd931d8..8b548a01b453 100644
--- a/tools/hciconfig.rst
+++ b/tools/hciconfig.rst
@@ -102,7 +102,7 @@ name [*name*]
class [*class*]
With no *class*, prints class of device. Otherwise, sets class of device
to *class*. *class* is a 24-bit hex number describing the class of device,
- as specified in section 1.2 of the Bluetooth Assigned Numers document.
+ as specified in section 1.2 of the Bluetooth Assigned Numbers document.
voice [*voice*]
With no *voice*, prints voice setting. Otherwise, sets voice setting to
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 7e9dd84d3195..f1eb79af1c97 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -2010,7 +2010,7 @@ static gboolean test_close_socket_1_part_2(gpointer args)
tester_print("Will close socket during scan phase...");
- /* We tried to conect to LE device that is not advertising. It
+ /* We tried to connect to LE device that is not advertising. It
* was added to kernel accept list, and scan was started. We
* should be still scanning.
*/
@@ -2526,7 +2526,7 @@ static void test_getpeername_not_connected(const void *test_data)
}
if (errno != ENOTCONN) {
- tester_warn("Unexpexted getpeername error: %s (%d)",
+ tester_warn("Unexpected getpeername error: %s (%d)",
strerror(errno), errno);
tester_test_failed();
goto done;
diff --git a/tools/l2test.c b/tools/l2test.c
index 4c22968999c9..cb06a45f6013 100644
--- a/tools/l2test.c
+++ b/tools/l2test.c
@@ -922,7 +922,7 @@ static void recv_mode(int sk)
/* Check sequence */
sq = get_le32(buf);
if (seq != sq) {
- syslog(LOG_INFO, "seq missmatch: %d -> %d", seq, sq);
+ syslog(LOG_INFO, "seq mismatch: %d -> %d", seq, sq);
seq = sq;
}
seq++;
@@ -930,14 +930,14 @@ static void recv_mode(int sk)
/* Check length */
l = get_le16(buf + 4);
if (len != l) {
- syslog(LOG_INFO, "size missmatch: %d -> %d", len, l);
+ syslog(LOG_INFO, "size mismatch: %d -> %d", len, l);
continue;
}
/* Verify data */
for (i = 6; i < len; i++) {
if (buf[i] != 0x7f)
- syslog(LOG_INFO, "data missmatch: byte %d 0x%2.2x", i, buf[i]);
+ syslog(LOG_INFO, "data mismatch: byte %d 0x%2.2x", i, buf[i]);
}
total += len;
diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c
index b1d091be7496..8c53c8c932eb 100644
--- a/tools/mesh-cfgclient.c
+++ b/tools/mesh-cfgclient.c
@@ -766,7 +766,7 @@ static void attach_node_reply(struct l_dbus_proxy *proxy,
if (local->mgmt_proxy)
l_queue_remove(node_proxies, local->mgmt_proxy);
- /* Inititalize config client model */
+ /* Initialize config client model */
client_init();
if (l_dbus_proxy_get_property(local->proxy, "IvIndex", "u", &ivi) &&
diff --git a/tools/mesh-gatt/mesh-net.h b/tools/mesh-gatt/mesh-net.h
index 95a1346e75a9..7877192f4aa9 100644
--- a/tools/mesh-gatt/mesh-net.h
+++ b/tools/mesh-gatt/mesh-net.h
@@ -100,7 +100,7 @@
#define PROXY_FILTER_ACCEPT_LIST 0x00
#define PROXY_FILTER_REJECT_LIST 0x01
-/* Network Tranport Opcodes */
+/* Network Transport Opcodes */
#define NET_OP_SEG_ACKNOWLEDGE 0x00
#define NET_OP_FRND_POLL 0x01
#define NET_OP_FRND_UPDATE 0x02
diff --git a/tools/mesh-gatt/node.c b/tools/mesh-gatt/node.c
index 356e1cd1ace4..9a106b53ec15 100644
--- a/tools/mesh-gatt/node.c
+++ b/tools/mesh-gatt/node.c
@@ -412,7 +412,7 @@ bool node_parse_composition(struct mesh_node *node, uint8_t *data, uint16_t len)
while (len >= 2 && m--) {
mod_id = get_le16(data);
- /* initialize uppper 16 bits to 0xffff for SIG models */
+ /* initialize upper 16 bits to 0xffff for SIG models */
mod_id |= 0xffff0000;
if (!node_set_model(node, ele->index, mod_id)) {
g_free(comp);
diff --git a/tools/mesh-gatt/prov.c b/tools/mesh-gatt/prov.c
index 1f3f62dfdcba..54d66a00cfa4 100644
--- a/tools/mesh-gatt/prov.c
+++ b/tools/mesh-gatt/prov.c
@@ -70,7 +70,7 @@
#define PROV_ERR_UNEXPECTED_ERR 0x07
#define PROV_ERR_CANT_ASSIGN_ADDR 0x08
-/* For Deployment, Security levels below HIGH are *not* recomended */
+/* For Deployment, Security levels below HIGH are *not* recommended */
static uint8_t prov_sec_level = MESH_PROV_SEC_MED;
/* Expected Provisioning PDU sizes */
@@ -618,7 +618,7 @@ bool prov_data_ready(struct mesh_node *node, uint8_t *buf, uint8_t len)
/* Compose appropriate reply for the prov state message */
/* Send reply via mesh_gatt_write() */
- /* If done, call prov_done calllback and free prov housekeeping data */
+ /* If done, call prov_done callback and free prov housekeeping data */
bt_shell_printf("Got provisioning data (%d bytes)\n", len);
print_byte_array("\t", buf, len);
diff --git a/tools/meshctl.c b/tools/meshctl.c
index 7b9c44b11e49..152fc0139849 100644
--- a/tools/meshctl.c
+++ b/tools/meshctl.c
@@ -777,7 +777,7 @@ static void disconnect_device(GDBusReturnFunction cb, void *user_data)
net_session_close(connection.data_in);
- /* Stop notificiation on prov_out or proxy out characteristics */
+ /* Stop notification on prov_out or proxy out characteristics */
if (connection.data_out) {
if (g_dbus_proxy_get_property(connection.data_out, "Notifying",
&iter) == TRUE) {
diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index a1d48152f23b..35035827c47e 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -6192,7 +6192,7 @@ static void setup_pairing_acceptor(const void *test_data)
setup_bthost();
}
-/* Generic callback for checking the mgmt evnet status
+/* Generic callback for checking the mgmt event status
*/
static void generic_mgmt_status_callback(uint8_t status, uint16_t length,
const void *param, void *user_data)
@@ -10045,8 +10045,8 @@ static void setup_set_exp_feature_alt(const void *test_data)
{
struct test_data *data = tester_get_data();
- /* Send the Read Experiemental Features Information command to receive
- * the Experiemental Feature Changed event
+ /* Send the Read Experimental Features Information command to receive
+ * the Experimental Feature Changed event
*/
mgmt_send(data->mgmt_alt, MGMT_OP_READ_EXP_FEATURES_INFO,
data->mgmt_index, 0, NULL,
@@ -14396,7 +14396,7 @@ int main(int argc, char *argv[])
test_bredrle50("Set PHY 2m Success", &set_phy_2m_success,
NULL, test_command_generic);
- test_bredrle50("Set PHY coded Succcess", &set_phy_coded_success,
+ test_bredrle50("Set PHY coded Success", &set_phy_coded_success,
NULL, test_command_generic);
test_bredrle50("Set PHY 2m tx success", &set_phy_2m_tx_success,
@@ -15001,7 +15001,7 @@ int main(int argc, char *argv[])
* Setup: Enable Privacy, LL Privacy
* Run: Pair device, disconnect, add device, add 2nd device, and
* remove the client, then unpair.
- * Expect: Expect the clinet is removed from the Accept List.
+ * Expect: Expect the client is removed from the Accept List.
*/
test_bredrle50_full("LL Privacy - Unpair 2 (Remove from AL)",
&ll_privacy_unpair_2,
diff --git a/tools/parser/att.c b/tools/parser/att.c
index bef583a1a8d5..fe1165bdd083 100644
--- a/tools/parser/att.c
+++ b/tools/parser/att.c
@@ -522,7 +522,7 @@ static void att_exec_write_req_dump(int level, struct frame *frm)
if (flags == 0x00)
printf("cancel all prepared writes ");
else
- printf("immediatelly write all pending prepared values ");
+ printf("immediately write all pending prepared values ");
printf("(0x%2.2x)\n", flags);
}
diff --git a/tools/parser/avrcp.c b/tools/parser/avrcp.c
index d574c7ee3cd6..9f0c1596b4b9 100644
--- a/tools/parser/avrcp.c
+++ b/tools/parser/avrcp.c
@@ -379,7 +379,7 @@ static const char *error2str(uint8_t status)
case AVRCP_STATUS_NOW_PLAYING_LIST_FULL:
return "Now Playing List Full";
case AVRCP_STATUS_SEARCH_NOT_SUPPORTED:
- return "Seach Not Supported";
+ return "Search Not Supported";
case AVRCP_STATUS_SEARCH_IN_PROGRESS:
return "Search in Progress";
case AVRCP_STATUS_INVALID_PLAYER_ID:
@@ -1091,12 +1091,12 @@ static void avrcp_get_play_status_dump(int level, struct frame *frm,
}
interval = p_get_u32(frm);
- printf("SongLength: 0x%08x (%u miliseconds)\n", interval, interval);
+ printf("SongLength: 0x%08x (%u milliseconds)\n", interval, interval);
p_indent(level, frm);
interval = p_get_u32(frm);
- printf("SongPosition: 0x%08x (%u miliconds)\n", interval, interval);
+ printf("SongPosition: 0x%08x (%u milliconds)\n", interval, interval);
p_indent(level, frm);
@@ -1157,7 +1157,7 @@ response:
break;
case AVRCP_EVENT_PLAYBACK_POS_CHANGED:
interval = p_get_u32(frm);
- printf("Position: 0x%08x (%u miliseconds)\n", interval,
+ printf("Position: 0x%08x (%u milliseconds)\n", interval,
interval);
break;
case AVRCP_EVENT_BATT_STATUS_CHANGED:
@@ -1179,7 +1179,7 @@ response:
printf("(UNPLUGGED)\n");
break;
default:
- printf("(UNKOWN)\n");
+ printf("(UNKNOWN)\n");
break;
}
break;
@@ -1565,7 +1565,7 @@ static void avrcp_passthrough_dump(int level, struct frame *frm)
len = p_get_u8(frm);
- printf("Lenght: 0x%02x\n", len);
+ printf("Length: 0x%02x\n", len);
raw_dump(level, frm);
}
diff --git a/tools/parser/hci.c b/tools/parser/hci.c
index a1a639eba035..4af142c4a3bd 100644
--- a/tools/parser/hci.c
+++ b/tools/parser/hci.c
@@ -1174,7 +1174,7 @@ static inline void qos_setup_dump(int level, struct frame *frm)
p_indent(level, frm);
printf("Token rate: %d\n", btohl(cp->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(cp->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(cp->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(cp->qos.latency));
p_indent(level, frm);
@@ -3155,7 +3155,7 @@ static inline void qos_setup_complete_dump(int level, struct frame *frm)
p_indent(level, frm);
printf("Token rate: %d\n", btohl(evt->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(evt->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(evt->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(evt->qos.latency));
p_indent(level, frm);
@@ -3310,7 +3310,7 @@ static inline void flow_spec_complete_dump(int level, struct frame *frm)
p_indent(level, frm);
printf("Token rate: %d\n", btohl(evt->qos.token_rate));
p_indent(level, frm);
- printf("Peak bandwith: %d\n", btohl(evt->qos.peak_bandwidth));
+ printf("Peak bandwidth: %d\n", btohl(evt->qos.peak_bandwidth));
p_indent(level, frm);
printf("Latency: %d\n", btohl(evt->qos.latency));
p_indent(level, frm);
diff --git a/tools/parser/l2cap.c b/tools/parser/l2cap.c
index 8675aa74191c..abc1c77361b6 100644
--- a/tools/parser/l2cap.c
+++ b/tools/parser/l2cap.c
@@ -279,7 +279,7 @@ static char *status2str(uint16_t status)
{
switch (status) {
case 0x0000:
- return "No futher information available";
+ return "No further information available";
case 0x0001:
return "Authentication pending";
case 0x0002:
diff --git a/tools/parser/parser.h b/tools/parser/parser.h
index b9f8f2c20671..dcc0e9b96897 100644
--- a/tools/parser/parser.h
+++ b/tools/parser/parser.h
@@ -149,7 +149,7 @@ static inline void p_ba2str(const bdaddr_t *ba, char *str)
ba2str(ba, str);
}
-/* get_uXX functions do byte swaping */
+/* get_uXX functions do byte swapping */
static inline uint8_t p_get_u8(struct frame *frm)
{
diff --git a/tools/parser/rfcomm.h b/tools/parser/rfcomm.h
index c3a1dfb22eea..b1cb1741c453 100644
--- a/tools/parser/rfcomm.h
+++ b/tools/parser/rfcomm.h
@@ -50,7 +50,7 @@
/* FIXME: Should this one be defined here? */
#define SHORT_PAYLOAD_SIZE 127
-/* Used for setting the EA field in different packets, really neccessary? */
+/* Used for setting the EA field in different packets, really necessary? */
#define EA 1
/* Yes the FCS size is only one byte */
#define FCS_SIZE 1
@@ -183,7 +183,7 @@ typedef struct rpn_values {
#error "Unknown byte order"
#endif
-/* Typedefinitions of stuctures used for creating and parsing packets, for a
+/* Typedefinitions of structures used for creating and parsing packets, for a
* further description of the structures please se the bluetooth core
* specification part F:1 and the ETSI TS 07.10 specification */
diff --git a/tools/parser/smp.c b/tools/parser/smp.c
index 733795ac682c..10d51de4d522 100644
--- a/tools/parser/smp.c
+++ b/tools/parser/smp.c
@@ -107,7 +107,7 @@ static const char *smpio2str(uint8_t cap)
case SMP_IO_KEYBOARD_DISPLAY:
return "KeyboardDisplay";
default:
- return "Unkown";
+ return "Unknown";
}
}
@@ -133,7 +133,7 @@ static const char *smpreason2str(uint8_t reason)
case SMP_REASON_REPEATED_ATTEMPTS:
return "Repeated Attempts";
default:
- return "Unkown";
+ return "Unknown";
}
}
diff --git a/tools/rctest.c b/tools/rctest.c
index 367e41e3c7e9..c102a6cd1a2c 100644
--- a/tools/rctest.c
+++ b/tools/rctest.c
@@ -512,7 +512,7 @@ static void recv_mode(int sk)
/* Check sequence */
sq = btohl(*(uint32_t *) buf);
if (seq != sq) {
- syslog(LOG_INFO, "seq missmatch: %d -> %d", seq, sq);
+ syslog(LOG_INFO, "seq mismatch: %d -> %d", seq, sq);
seq = sq;
}
seq++;
@@ -520,14 +520,14 @@ static void recv_mode(int sk)
/* Check length */
l = btohs(*(uint16_t *) (buf + 4));
if (r != l) {
- syslog(LOG_INFO, "size missmatch: %d -> %d", r, l);
+ syslog(LOG_INFO, "size mismatch: %d -> %d", r, l);
continue;
}
/* Verify data */
for (i = 6; i < r; i++) {
if (buf[i] != 0x7f)
- syslog(LOG_INFO, "data missmatch: byte %d 0x%2.2x", i, buf[i]);
+ syslog(LOG_INFO, "data mismatch: byte %d 0x%2.2x", i, buf[i]);
}
#endif
total += r;
--
2.50.0
^ permalink raw reply related [flat|nested] 23+ messages in thread* Re: [PATCH BlueZ 00/19] Fix typos
2025-07-03 8:53 [PATCH BlueZ 00/19] Fix typos Bastien Nocera
` (18 preceding siblings ...)
2025-07-03 8:53 ` [PATCH BlueZ 19/19] tools: " Bastien Nocera
@ 2025-07-07 18:10 ` patchwork-bot+bluetooth
19 siblings, 0 replies; 23+ messages in thread
From: patchwork-bot+bluetooth @ 2025-07-07 18:10 UTC (permalink / raw)
To: Bastien Nocera; +Cc: linux-bluetooth
Hello:
This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 3 Jul 2025 10:53:08 +0200 you wrote:
> Used codespell to detect typos, and my head to remove the false
> positive.
>
> Please review line-by-line before applying, it's long, but won't be as
> long as fixing those typos ;)
>
> Bastien Nocera (19):
> android: Fix typos
> Fix typos in top-level project docs
> attrib: Fix typos
> doc: Fix typos
> client: Fix typos
> emulator: Fix typos
> gobex: Fix typos
> lib: Fix typos
> mesh: Fix typos
> monitor: Fix typos
> obexd: Fix typos
> peripheral: Fix typo
> plugins: Fix typos
> profiles: Fix typos
> src: Fix typos
> shared: Fix typos
> test: Fix typos
> unit: Fix typos
> tools: Fix typos
>
> [...]
Here is the summary with links:
- [BlueZ,01/19] android: Fix typos
(no matching commit)
- [BlueZ,02/19] Fix typos in top-level project docs
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=d46ec5f46c36
- [BlueZ,03/19] attrib: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=87fb2b7b5a80
- [BlueZ,04/19] doc: Fix typos
(no matching commit)
- [BlueZ,05/19] client: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=9986633b3155
- [BlueZ,06/19] emulator: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e3b9fc5ac340
- [BlueZ,07/19] gobex: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a1b1d08d430d
- [BlueZ,08/19] lib: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=9e9f27057784
- [BlueZ,09/19] mesh: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=ce78b15e67b0
- [BlueZ,10/19] monitor: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=27b1e893cd99
- [BlueZ,11/19] obexd: Fix typos
(no matching commit)
- [BlueZ,12/19] peripheral: Fix typo
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a1f82f1020f9
- [BlueZ,13/19] plugins: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4d68c6090471
- [BlueZ,14/19] profiles: Fix typos
(no matching commit)
- [BlueZ,15/19] src: Fix typos
(no matching commit)
- [BlueZ,16/19] shared: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=f019d0671875
- [BlueZ,17/19] test: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=32e3d6351d3f
- [BlueZ,18/19] unit: Fix typos
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=de69e5a3ab7d
- [BlueZ,19/19] tools: Fix typos
(no matching commit)
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 23+ messages in thread