From 47a3491775c6d671a6af136b07311b2f15855dda Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Tue, 4 Jul 2000 01:42:30 +0000 Subject: [PATCH] (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 --- prog/dump/i2cdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prog/dump/i2cdump.c b/prog/dump/i2cdump.c index 2b4a5f0d..1fb0350a 100644 --- a/prog/dump/i2cdump.c +++ b/prog/dump/i2cdump.c @@ -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);