* [PATCH] tools/btgatt-client: Fix register-notify prompt
@ 2016-02-27 22:54 Maxime Chevallier
0 siblings, 0 replies; only message in thread
From: Maxime Chevallier @ 2016-02-27 22:54 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
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.
---
tools/btgatt-client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 2153bec..b1bb538 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -1112,7 +1112,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)
@@ -1147,7 +1147,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)
--
2.5.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-27 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-27 22:54 [PATCH] tools/btgatt-client: Fix register-notify prompt Maxime Chevallier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).