diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2014-02-07 16:14:46 -0400 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-21 14:05:28 +0200 |
commit | cb7a38247eb0e154643b67e236f65948522391d2 (patch) | |
tree | d71f7a684841c72ef677aa5180bd9a322a9d1532 /lib/sdp.c | |
parent | ad65832b964aa5e92758f1eefdbe0fc17ddf157b (diff) | |
download | bluez-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |