diff --git a/monitor/analyze.c b/monitor/analyze.c
index 3cc482c..c466ff3 100644
--- a/monitor/analyze.c
+++ b/monitor/analyze.c
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;
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 e5630f0..33d45e9 100644
--- a/monitor/att.c
+++ b/monitor/att.c
}
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)" },
{ }
};
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 4da4487..fda7ff1 100644
--- a/monitor/avctp.c
+++ b/monitor/avctp.c
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))
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 31970d4..eb5e251 100644
--- a/monitor/btmon.rst
+++ b/monitor/btmon.rst
:Manual section: 1
:Manual group: Linux System Administration
-SYNOPSYS
+SYNOPSIS
========
**btmon** [*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
- (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 dff183b..8c47f8c 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
{
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 feeb13e..34dddcb 100644
--- a/monitor/ll.c
+++ b/monitor/ll.c
}
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 */
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 |
switch (llid) {
case 0x01:
if (length > 0)
- str = "Continuation fragement of L2CAP message";
+ str = "Continuation fragment of L2CAP message";
else
str = "Empty message";
break;
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);
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 096fedd..24b7bd5 100644
--- a/monitor/msft.c
+++ b/monitor/msft.c
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 f498173..21df067 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
{ 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" },
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*/
{ 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 },
str = "Passkey digit erased";
break;
case 0x03:
- str = "Passkey clared";
+ str = "Passkey cleared";
break;
case 0x04:
str = "Passkey entry completed";
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",