Changeset 830

Show
Ignore:
Timestamp:
07/04/00 03:42:30 (14 years ago)
Author:
mds
Message:

(mds) fix typos in /dev/i2c- and /dev/i2c checking.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r827 r830  
    127127 
    128128  sprintf(filename1,"/dev/i2c-%d",i2cbus); 
    129   sprintf(filename2,"/dev/i2c-%d",i2cbus); 
     129  sprintf(filename2,"/dev/i2c%d",i2cbus); 
    130130  if ((file = open(filename1,O_RDWR)) < 0) { 
    131     if ((file = open(filename1,O_RDWR)) < 0) { 
     131    if ((file = open(filename2,O_RDWR)) < 0) { 
    132132      fprintf(stderr,"Error: Could not open file `%s' or `%s': %s\n",filename1, 
    133133              filename2,strerror(errno));