Blame 0006-dmidecode-Introduce-SYS_FIRMWARE_DIR.patch
|
Anton Arapov |
0a7886 |
From 2330b708a6d57fd2b8b7e353dd64d037f980a042 Mon Sep 17 00:00:00 2001
|
|
Anton Arapov |
0a7886 |
From: Jean Delvare <jdelvare@suse.de>
|
|
Anton Arapov |
0a7886 |
Date: Mon, 2 Nov 2015 09:45:13 +0100
|
|
Anton Arapov |
0a7886 |
Subject: [PATCH 6/9] dmidecode: Introduce SYS_FIRMWARE_DIR
|
|
Anton Arapov |
0a7886 |
|
|
Anton Arapov |
0a7886 |
Have SYS_FIRMWARE_DIR point to the sysfs directory where our files
|
|
Anton Arapov |
0a7886 |
live, and use it in the definition of their paths. This makes it
|
|
Anton Arapov |
0a7886 |
easier to temporarily point somewhere else for debugging.
|
|
Anton Arapov |
0a7886 |
---
|
|
Anton Arapov |
0a7886 |
dmidecode.c | 5 +++--
|
|
Anton Arapov |
0a7886 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
Anton Arapov |
0a7886 |
|
|
Anton Arapov |
0a7886 |
diff --git a/dmidecode.c b/dmidecode.c
|
|
Anton Arapov |
0a7886 |
index cfcade4..183ced4 100644
|
|
Anton Arapov |
0a7886 |
--- a/dmidecode.c
|
|
Anton Arapov |
0a7886 |
+++ b/dmidecode.c
|
|
Anton Arapov |
0a7886 |
@@ -74,8 +74,9 @@ static const char *bad_index = "<BAD INDEX>";
|
|
Anton Arapov |
0a7886 |
#define FLAG_NO_FILE_OFFSET (1 << 0)
|
|
Anton Arapov |
0a7886 |
#define FLAG_STOP_AT_EOT (1 << 1)
|
|
Anton Arapov |
0a7886 |
|
|
Anton Arapov |
0a7886 |
-#define SYS_ENTRY_FILE "/sys/firmware/dmi/tables/smbios_entry_point"
|
|
Anton Arapov |
0a7886 |
-#define SYS_TABLE_FILE "/sys/firmware/dmi/tables/DMI"
|
|
Anton Arapov |
0a7886 |
+#define SYS_FIRMWARE_DIR "/sys/firmware/dmi/tables"
|
|
Anton Arapov |
0a7886 |
+#define SYS_ENTRY_FILE SYS_FIRMWARE_DIR "/smbios_entry_point"
|
|
Anton Arapov |
0a7886 |
+#define SYS_TABLE_FILE SYS_FIRMWARE_DIR "/DMI"
|
|
Anton Arapov |
0a7886 |
|
|
Anton Arapov |
0a7886 |
/*
|
|
Anton Arapov |
0a7886 |
* Type-independant Stuff
|
|
Anton Arapov |
0a7886 |
--
|
|
Anton Arapov |
0a7886 |
2.5.0
|
|
Anton Arapov |
0a7886 |
|