diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index ff6a46a..b89bcac 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
eir_len = bt_get_le16(&ev->eir_len);
if (len != sizeof(*ev) + eir_len) {
- fprintf(stderr, "dev_found: expected %zu bytes, got %u bytes",
+ fprintf(stderr, "dev_found: expected %zu bytes, got %u bytes\n",
sizeof(*ev) + eir_len, len);
return -EINVAL;
}
{
if (status != 0) {
fprintf(stderr,
- "hci%u PIN Code reply failed with status 0x%02x (%s)",
+ "hci%u PIN Code reply failed with status 0x%02x (%s)\n",
id, status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}
{
if (status != 0) {
fprintf(stderr,
- "hci%u PIN Neg reply failed with status 0x%02x (%s)",
+ "hci%u PIN Neg reply failed with status 0x%02x (%s)\n",
id, status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}
{
if (status != 0) {
fprintf(stderr,
- "hci%u User Confirm reply failed. status 0x%02x (%s)",
+ "hci%u User Confirm reply failed. status 0x%02x (%s)\n",
id, status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}
{
if (status != 0) {
fprintf(stderr,
- "hci%u Confirm Neg reply failed. status 0x%02x (%s)",
+ "hci%u Confirm Neg reply failed. status 0x%02x (%s)\n",
id, status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}
printf("event 0x%04x len 0x%04x index 0x%04x\n", ev, len, index);
if (ret != MGMT_HDR_SIZE + len) {
- fprintf(stderr, "Packet length mismatch. ret %zd len %u",
+ fprintf(stderr, "Packet length mismatch. ret %zd len %u\n",
ret, len);
return 0;
}
void *rsp, uint16_t len, void *user_data)
{
if (status != 0) {
- fprintf(stderr, "Unable to set local name. status 0x%02x (%s)",
+ fprintf(stderr, "Unable to set local name "
+ "with status 0x%02x (%s)\n",
status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}
void *rsp, uint16_t len, void *user_data)
{
if (status != 0) {
- fprintf(stderr, "Set Device ID failed with status 0x%02x (%s)\n",
+ fprintf(stderr, "Set Device ID failed "
+ "with status 0x%02x (%s)\n",
status, mgmt_errstr(status));
exit(EXIT_FAILURE);
}