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 | |||||
7 | #include <common/uuid/uuid.h> | ||||
8 | #include "print_uuid.h" | ||||
9 | |||||
10 | std::string print_uuid(const uint8_t *uuid_octets) | ||||
11 | { | ||||
12 | struct uuid_canonical canonical_uuid; | ||||
13 | |||||
14 | uuid_canonical_from_guid_octets(&canonical_uuid, (const struct uuid_octets *)uuid_octets); | ||||
15 | |||||
16 | return std::string(canonical_uuid.characters); | ||||
17 | } |