mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-09 16:21:51 +00:00
(mds) add bus list to help() routine, like was previously
done to i2cdump. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@697 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
8f25a91438
commit
2d35888ed8
1 file changed
+10
@@ -28,7 +28,17 @@
|
||||
|
||||
void help(void)
|
||||
{
|
||||
FILE *fptr;
|
||||
char s[100];
|
||||
|
||||
fprintf(stderr,"Syntax: i2cdetect I2CBUS\n");
|
||||
fprintf(stderr," I2CBUS is an integer\n");
|
||||
if((fptr = fopen("/proc/bus/i2c", "r"))) {
|
||||
fprintf(stderr," Installed I2C busses:\n");
|
||||
while(fgets(s, 100, fptr))
|
||||
fprintf(stderr, " %s", s);
|
||||
fclose(fptr);
|
||||
}
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
Reference in new issue
Block a user