Show
Ignore:
Timestamp:
04/24/08 14:36:38 (6 years ago)
Author:
khali
Message:

More user-friendly error messages for wrong I2C bus parameter.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cbusses.c

    r5204 r5205  
    314314 
    315315        if (i2cbus == -1) 
    316                 fprintf(stderr, "Error: I2CBUS argument doesn't match any " 
    317                         "I2C bus name\n"); 
     316                fprintf(stderr, "Error: I2C bus name doesn't match any " 
     317                        "bus present!\n"); 
    318318 
    319319done: 
     
    337337        } 
    338338        if (i2cbus < 0 || i2cbus > 0xff) { 
    339                 fprintf(stderr, "Error: I2CBUS argument out of range " 
    340                         "(0-255)!\n"); 
     339                fprintf(stderr, "Error: I2C bus out of range (0-255)!\n"); 
    341340                return -2; 
    342341        }