From: Florian Forster Date: Tue, 19 Dec 2023 08:51:55 +0000 (+0100) Subject: src/smart_test.c: Importing changes from `main`. X-Git-Tag: 6.0.0-rc0~2^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c92b90ea5cf5ae915b0c726af3e920ce86c8c101;p=thirdparty%2Fcollectd.git src/smart_test.c: Importing changes from `main`. Changes: d228c3129c270754b61bf3caae0af36bc7a9c73a Fic smart_test.c for big endian. (#3799) --- diff --git a/src/smart_test.c b/src/smart_test.c index f1a01e639..e37585e20 100644 --- a/src/smart_test.c +++ b/src/smart_test.c @@ -46,7 +46,7 @@ int ioctl(int __fd, unsigned long int __request, ...) { if (admin_cmd->opcode == NVME_ADMIN_IDENTIFY) { // ioctl asked about vid __le16 *vid = (__le16 *)addr; - *vid = VENDOR_ID; + *vid = htole16(VENDOR_ID); return 0; } else if (admin_cmd->opcode == NVME_ADMIN_GET_LOG_PAGE) { // ioctl asked about smart attributes