summaryrefslogtreecommitdiffstats
path: root/tools/sdptool.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-12-13 10:35:27 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-12-13 10:35:27 +0000
commit6ab0c763564fb55fc50f2f8ce4712fc718321635 (patch)
treec4d3bf8abd8d339f697e9ba7c6335e9e96b7d105 /tools/sdptool.c
parent5e138ccd0d193206f602f6670ce60d2169ed0bc6 (diff)
Fix display of text and data strings
Diffstat (limited to 'tools/sdptool.c')
-rw-r--r--tools/sdptool.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/sdptool.c b/tools/sdptool.c
index 2fcd0c7a..b3124c58 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -666,11 +666,15 @@ static void print_raw_data(sdp_data_t *data, int indent)
hex = 1;
break;
}
- for (i = 0; i < data->unitSize; i++)
- if (hex)
+ if (hex) {
+ printf("Data");
+ for (i = 0; i < data->unitSize; i++)
printf(" %02x", (unsigned char) data->val.str[i]);
- else
+ } else {
+ printf("String ");
+ for (i = 0; i < data->unitSize; i++)
printf("%c", data->val.str[i]);
+ }
printf("\n");
break;
case SDP_URL_STR8: