From: Maxime Chevallier <maxime.chevallier@openwide.fr>
To: linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com
Subject: [PATCH] tools/btgatt-client: Fix register-notify prompt
Date: Sat, 27 Feb 2016 23:54:54 +0100 [thread overview]
Message-ID: <20160227225454.GA10246@vps217108.ovh.net> (raw)
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
reply other threads:[~2016-02-27 22:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160227225454.GA10246@vps217108.ovh.net \
--to=maxime.chevallier@openwide.fr \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).