]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/ocp: Use network byte order for OCP UUID value
authorda Cunha, Leonardo <leonardo.da.cunha@solidigm.com>
Wed, 1 Feb 2023 00:09:51 +0000 (16:09 -0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 3 Feb 2023 07:38:43 +0000 (08:38 +0100)
The initialization of the OCP UUID needs to be in network byte order.

plugins/ocp/ocp-utils.c

index 9294c05d3ead179f24bc8fff1089b8f392c18e30..34b212ba918d4093e0d6cd1e4ff8c835d8be6d0a 100644 (file)
@@ -8,8 +8,8 @@
 #include "ocp-utils.h"
 
 const unsigned char ocp_uuid[NVME_UUID_LEN] = {
-       0x6f, 0xbe, 0x56, 0x8f, 0x99, 0x29, 0x1d, 0xa2, 0x94, 0x47,
-       0x94, 0xe0, 0x5b, 0xd5, 0x94, 0xc1 };
+       0xc1, 0x94, 0xd5, 0x5b, 0xe0, 0x94, 0x47, 0x94, 0xa2, 0x1d,
+       0x29, 0x99, 0x8f, 0x56, 0xbe, 0x6f };
 
 int ocp_get_uuid_index(struct nvme_dev *dev, int *index)
 {