Use subdirectory search specification for device files.

This commit is contained in:
Jeffrey Townsend
2017-01-08 23:06:34 +00:00
parent 9d96890cf1
commit 684496a31a

View File

@@ -114,7 +114,7 @@ psu_fan_info_get__(onlp_fan_info_t* info, int id)
extern struct psu_info_s psu_info[];
char* dir = psu_info[id].path;
return onlp_file_read_int(&info->rpm, "%s/fan1_input", dir);
return onlp_file_read_int(&info->rpm, "%s*fan1_input", dir);
}
@@ -166,5 +166,3 @@ onlp_fani_info_get(onlp_oid_t id, onlp_fan_info_t* rv)
return ONLP_STATUS_E_INVALID;
}