summaryrefslogtreecommitdiff
path: root/tools/btgatt-client.c
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@openwide.fr>2016-02-27 23:54:54 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-12-28 11:07:36 +0200
commit42585f29c11b3f356e467e752d5e4b4d7b916780 (patch)
tree0b031d65693c864ef3ed77ea39b46b14467b624d /tools/btgatt-client.c
parentc272989f0477f7ac794016b057d1b09e8b58f7dc (diff)
downloadbluez-42585f29c11b3f356e467e752d5e4b4d7b916780.tar.gz
tools/btgatt-client: Fix register-notify prompt
Added missing carriage return in register_notify_cb. Changed a call to PRLOG to a simple printf to avoid getting a extra prompt in cmd_register_notify.
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r--tools/btgatt-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 4c8c9dda9..0374a841d 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -1114,7 +1114,7 @@ static void register_notify_cb(uint16_t att_ecode, void *user_data)
return;
}
- PRLOG("Registered notify handler!");
+ PRLOG("Registered notify handler!\n");
}
static void cmd_register_notify(struct client *cli, char *cmd_str)
@@ -1149,7 +1149,7 @@ static void cmd_register_notify(struct client *cli, char *cmd_str)
return;
}
- PRLOG("Registering notify handler with id: %u\n", id);
+ printf("Registering notify handler with id: %u\n", id);
}
static void unregister_notify_usage(void)