From: da Cunha, Leonardo Date: Wed, 1 Feb 2023 00:09:51 +0000 (-0800) Subject: plugins/ocp: Use network byte order for OCP UUID value X-Git-Tag: v2.4~84 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=acaa71332161c7af025af7b5e73ba0ff773be3a8;p=users%2Fsagi%2Fnvme-cli.git plugins/ocp: Use network byte order for OCP UUID value The initialization of the OCP UUID needs to be in network byte order. --- diff --git a/plugins/ocp/ocp-utils.c b/plugins/ocp/ocp-utils.c index 9294c05d..34b212ba 100644 --- a/plugins/ocp/ocp-utils.c +++ b/plugins/ocp/ocp-utils.c @@ -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) {