Julian Hall | 351a072 | 2023-01-12 11:58:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Julian Hall | 351a072 | 2023-01-12 11:58:42 +0000 | [diff] [blame] | 7 | #include "print_uuid.h" |
| 8 | |
Gyorgy Szing | 3c44624 | 2023-03-31 01:53:15 +0200 | [diff] [blame] | 9 | #include "common/uuid/uuid.h" |
| 10 | |
Julian Hall | 351a072 | 2023-01-12 11:58:42 +0000 | [diff] [blame] | 11 | std::string print_uuid(const uint8_t *uuid_octets) |
| 12 | { |
| 13 | struct uuid_canonical canonical_uuid; |
| 14 | |
| 15 | uuid_canonical_from_guid_octets(&canonical_uuid, (const struct uuid_octets *)uuid_octets); |
| 16 | |
| 17 | return std::string(canonical_uuid.characters); |
| 18 | } |