[osmo-bts PATCH 1/3] src/misc/sysmobts_misc: Fixed wrong TEMP_PATH

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Alvaro Neira anayuso at sysmocom.de
Thu Feb 27 11:30:16 UTC 2014


From: Álvaro Neira Ayuso <anayuso at sysmocom.de>

Before, this patch the program try to catch the info
of the temperature sensor in a wrong ubication file.

Signed-off-by: Alvaro Neira Ayuso <anayuso at sysmocom.de>
---
 src/osmo-bts-sysmo/misc/sysmobts_misc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/osmo-bts-sysmo/misc/sysmobts_misc.c b/src/osmo-bts-sysmo/misc/sysmobts_misc.c
index 74414d0..c043045 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_misc.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_misc.c
@@ -45,7 +45,7 @@
  * Temperature handling
  *********************************************************************/
 
-#define TEMP_PATH	"/sys/class/hwmon/hwmon0/device%u_%s"
+#define TEMP_PATH	"/sys/class/hwmon/hwmon0/device/temp%u_%s"
 
 static const char *temp_type_str[_NUM_TEMP_TYPES] = {
 	[SYSMOBTS_TEMP_INPUT] = "input",





More information about the OpenBSC mailing list