diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-11-20 18:01:01 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-11-20 18:01:01 +0100 |
commit | a9953817d3f83b99f82f6ffb89d5d75d5648bbda (patch) | |
tree | bafe12e5070204479a85f9c0fbbaef466616378b /monitor/uuid.c | |
parent | 6986e5aa1f97115fedfe2d58ff12e1365ca6b52e (diff) |
monitor: Handle UUID-32 and UUID-128 values
Diffstat (limited to 'monitor/uuid.c')
-rw-r--r-- | monitor/uuid.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor/uuid.c b/monitor/uuid.c index 8ba58c1d9..c348e1742 100644 --- a/monitor/uuid.c +++ b/monitor/uuid.c @@ -151,3 +151,11 @@ const char *uuid16_to_str(uint16_t uuid) return "Unknown"; } + +const char *uuid32_to_str(uint32_t uuid) +{ + if ((uuid & 0xffff0000) == 0x0000) + return uuid16_to_str(uuid & 0x0000ffff); + + return "Unknown"; +} |