aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bluetooth.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-10-06 19:39:42 +0200
committerMichal Labedzki <michal.labedzki@tieto.com>2015-10-17 10:21:53 +0000
commit106c2893695b54a481f8e9baa4200fee2dfea880 (patch)
treee50b7163e5f7435e1ce0d7bc168a004ddac302b7 /epan/dissectors/packet-bluetooth.c
parentb271537c2465aa42bbef61a8c1b252400630ae3f (diff)
Bluetooth: ATT: Print names assigned to handles in info column
This increase readability. Change-Id: I033ae557316f40b292da2c9b3f99692bbe21cf4d Reviewed-on: https://code.wireshark.org/review/11020 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bluetooth.c')
-rw-r--r--epan/dissectors/packet-bluetooth.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-bluetooth.c b/epan/dissectors/packet-bluetooth.c
index fd25b5c13d..d855f90d1e 100644
--- a/epan/dissectors/packet-bluetooth.c
+++ b/epan/dissectors/packet-bluetooth.c
@@ -1322,7 +1322,8 @@ print_uuid(bluetooth_uuid_t *uuid)
if (uuid->bt_uuid) {
return wmem_strdup(wmem_packet_scope(), val_to_str_ext_const(uuid->bt_uuid, &bluetooth_uuid_vals_ext, "Unknown"));
} else {
- guint i_uuid;
+ guint i_uuid;
+ gchar *description;
i_uuid = 0;
while (bluetooth_uuid_custom[i_uuid].name) {
@@ -1338,7 +1339,12 @@ print_uuid(bluetooth_uuid_t *uuid)
i_uuid += 1;
}
- return print_numeric_uuid(uuid);
+ description = print_numeric_uuid(uuid);
+
+ if (description)
+ return description;
+ else
+ return (gchar *) "Unknown";
}
}