mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-26 20:38:20 +00:00
Documentation updates, small bug fixes
I am trying to create a more-or-less standard documentation format for doc/chips/* files. I am not quite satisfied with the lm75 and lm78 docs yet, but it is starting to come. Basically, I want as much information in it as possible, and to generate most of it automatically. But that is harder than I though it would be. Also, a small library bugfix (class problem) and a doc-features fix. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@210 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ed5aeab91c
commit
9f600e9c2c
4 files changed
+157
-121
No files matched your search
@@ -51,11 +51,10 @@ const char *mode_string(int mode)
|
||||
void dump_feature(const sensors_chip_feature *featuredata,
|
||||
const sensors_chip_features *chipdata)
|
||||
{
|
||||
printf(" %17s: %17s %17s %2s %2d\n",featuredata->name,
|
||||
printf(" %17s: %17s %17s %2s\n",featuredata->name,
|
||||
lookup_feature_name(featuredata->logical_mapping,chipdata),
|
||||
lookup_feature_name(featuredata->compute_mapping,chipdata),
|
||||
mode_string(featuredata->mode),
|
||||
featuredata->scaling);
|
||||
mode_string(featuredata->mode));
|
||||
}
|
||||
|
||||
int qsort_compare (const void *f1, const void *f2)
|
||||
@@ -77,8 +76,8 @@ void dump_chip (const sensors_chip_features *chipdata)
|
||||
qsort(features,i,sizeof(*features),qsort_compare);
|
||||
|
||||
printf("Chip `%s'\n",chipdata->prefix);
|
||||
printf(" %17s %17s %17s %2s %s\n","NAME","LABEL CLASS","COMPUTE CLASS",
|
||||
"RW","SCALE");
|
||||
printf(" %17s %17s %17s %2s\n","NAME","LABEL CLASS","COMPUTE CLASS",
|
||||
"RW");
|
||||
for (i = 0; features[i]->name; i++)
|
||||
dump_feature(features[i],chipdata);
|
||||
|
||||
|
||||
Reference in new issue
Block a user