mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
(mds) fix typos in /dev/i2c- and /dev/i2c checking.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@830 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
139d5fed3a
commit
47a3491775
1 file changed
+2
-2
+2
-2
@@ -126,9 +126,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
sprintf(filename1,"/dev/i2c-%d",i2cbus);
|
||||
sprintf(filename2,"/dev/i2c-%d",i2cbus);
|
||||
sprintf(filename2,"/dev/i2c%d",i2cbus);
|
||||
if ((file = open(filename1,O_RDWR)) < 0) {
|
||||
if ((file = open(filename1,O_RDWR)) < 0) {
|
||||
if ((file = open(filename2,O_RDWR)) < 0) {
|
||||
fprintf(stderr,"Error: Could not open file `%s' or `%s': %s\n",filename1,
|
||||
filename2,strerror(errno));
|
||||
exit(1);
|
||||
|
||||
Reference in new issue
Block a user