projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c10fa
)
fix-smart-test
author
Collectd Packaging Team
<team+collectd@tracker.debian.org>
Mon, 16 Jan 2023 15:54:46 +0000
(15:54 +0000)
committer
Bernd Zeimetz
<bzed@debian.org>
Mon, 16 Jan 2023 15:54:46 +0000
(15:54 +0000)
===================================================================
Gbp-Pq: Name fix-smart-test
src/smart_test.c
patch
|
blob
|
history
diff --git
a/src/smart_test.c
b/src/smart_test.c
index f1a01e639a4480755072d164baed53dc8b30da9e..a6b912faba8c66ff47dfa97ecc8e8948787c45ed 100644
(file)
--- a/
src/smart_test.c
+++ b/
src/smart_test.c
@@
-30,6
+30,8
@@
#include "smart.c"
#include "testing.h"
+
+
#define INTEL_VID 0x8086
int VENDOR_ID = INTEL_VID;
@@
-46,7
+48,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