Diff between 4d68c6090471abe733cafb5995f226da46ffbafc and 46e69f12e6b8b80e4d6bb9b84c5cb0ac954cef0e

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +2 -2 modified
profiles/audio/avrcp.c +2 -2 modified
profiles/audio/bap.c +1 -1 modified
profiles/audio/bass.c +1 -1 modified
profiles/audio/micp.c +3 -3 modified
profiles/battery/battery.c +1 -1 modified
profiles/gap/gas.c +1 -1 modified
profiles/health/mcap.c +9 -9 modified
profiles/input/hog-lib.c +1 -1 modified
profiles/midi/libmidi.c +1 -1 modified
profiles/midi/midi.c +10 -5 modified

Full Patch

diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 7c0f9c5..d2c2bec 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -333,8 +333,8 @@ static int error_to_errno(struct avdtp_error *err)
 	case ECONNREFUSED:
 		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 831f1dc..df28bf0 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 66403fc..a1ca26b 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 2cda00b..c853fbc 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 3f0845d..4f0bde1 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 5318d40..5be78ab 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 08aaf19..a4831d3 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 2e4214a..74fffa7 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 22599f7..dbf4dad 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 5b77cd3..6f2914a 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 bab309b..944887a 100644
--- a/profiles/midi/midi.c
+++ b/profiles/midi/midi.c
@@ -301,25 +301,29 @@ static int midi_accept(struct btd_service *service)
 	/* ALSA Sequencer Client and Port Setup */
 	err = snd_seq_open(&midi->seq_handle, "default", SND_SEQ_OPEN_DUPLEX, 0);
 	if (err < 0) {
-		error("Could not open ALSA Sequencer: %s (%d)", snd_strerror(err), err);
+		error("Could not open ALSA Sequencer: %s (%d)",
+			snd_strerror(err), err);
 		return err;
 	}
 
 	err = snd_seq_nonblock(midi->seq_handle, SND_SEQ_NONBLOCK);
 	if (err < 0) {
-		error("Could not set nonblock mode: %s (%d)", snd_strerror(err), err);
+		error("Could not set nonblock mode: %s (%d)",
+			snd_strerror(err), err);
 		goto _err_handle;
 	}
 
 	err = snd_seq_set_client_name(midi->seq_handle, device_name);
 	if (err < 0) {
-		error("Could not configure ALSA client: %s (%d)", snd_strerror(err), err);
+		error("Could not configure ALSA client: %s (%d)",
+			snd_strerror(err), err);
 		goto _err_handle;
 	}
 
 	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;
@@ -332,7 +336,8 @@ static int midi_accept(struct btd_service *service)
 	                                 SND_SEQ_PORT_TYPE_MIDI_GENERIC |
 	                                 SND_SEQ_PORT_TYPE_HARDWARE);
 	if (err < 0) {
-		error("Could not create ALSA port: %s (%d)", snd_strerror(err), err);
+		error("Could not create ALSA port: %s (%d)", snd_strerror(err),
+			err);
 		goto _err_handle;
 	}
 	midi->seq_port_id = err;