summaryrefslogtreecommitdiff
path: root/lib/sdp.c
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2014-02-07 16:14:46 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-21 14:05:28 +0200
commitcb7a38247eb0e154643b67e236f65948522391d2 (patch)
treed71f7a684841c72ef677aa5180bd9a322a9d1532 /lib/sdp.c
parentad65832b964aa5e92758f1eefdbe0fc17ddf157b (diff)
downloadbluez-cb7a38247eb0e154643b67e236f65948522391d2.tar.gz
lib/sdp: Fix printing of multiple record fields
If there are multiple fields to print, sdp_record_print() was missing a newline between entries.
Diffstat (limited to 'lib/sdp.c')
-rw-r--r--lib/sdp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sdp.c b/lib/sdp.c
index 0a7cb6f6c..e5e4622a9 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -1605,13 +1605,13 @@ void sdp_record_print(const sdp_record_t *rec)
{
sdp_data_t *d = sdp_data_get(rec, SDP_ATTR_SVCNAME_PRIMARY);
if (d && SDP_IS_TEXT_STR(d->dtd))
- printf("Service Name: %.*s", d->unitSize, d->val.str);
+ printf("Service Name: %.*s\n", d->unitSize, d->val.str);
d = sdp_data_get(rec, SDP_ATTR_SVCDESC_PRIMARY);
if (d && SDP_IS_TEXT_STR(d->dtd))
- printf("Service Description: %.*s", d->unitSize, d->val.str);
+ printf("Service Description: %.*s\n", d->unitSize, d->val.str);
d = sdp_data_get(rec, SDP_ATTR_PROVNAME_PRIMARY);
if (d && SDP_IS_TEXT_STR(d->dtd))
- printf("Service Provider: %.*s", d->unitSize, d->val.str);
+ printf("Service Provider: %.*s\n", d->unitSize, d->val.str);
}
#ifdef SDP_DEBUG