Changeset 501

Show
Ignore:
Timestamp:
07/21/99 12:12:21 (15 years ago)
Author:
kmalkki
Message:

(Kyösti)

  • renamed SMBUS_* to I2C_SMBUS_*
Files:
1 modified

Legend:

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

    r496 r501  
    7474  if (argc < 4) { 
    7575    fprintf(stderr,"Warning: no size specified (using byte-data access)\n"); 
    76     size = SMBUS_BYTE_DATA; 
     76    size = I2C_SMBUS_BYTE_DATA; 
    7777  } else if (!strcmp(argv[3],"b")) 
    78     size = SMBUS_BYTE_DATA; 
     78    size = I2C_SMBUS_BYTE_DATA; 
    7979  else if (!strcmp(argv[3],"w")) 
    80     size = SMBUS_WORD_DATA; 
     80    size = I2C_SMBUS_WORD_DATA; 
    8181  else { 
    8282    fprintf(stderr,"Error: Third argument not recognized!\n"); 
     
    101101          "cause data loss and worse!\n"); 
    102102  fprintf(stderr,"  I will probe file %s, address 0x%x, mode %s\n", 
    103           filename,address,size == SMBUS_BYTE_DATA?"byte":"word"); 
     103          filename,address,size == I2C_SMBUS_BYTE_DATA?"byte":"word"); 
    104104  fprintf(stderr,"  You have five seconds to reconsider and press CTRL-C!\n\n"); 
    105105  sleep(5); 
    106106 
    107   if (size == SMBUS_BYTE_DATA) { 
     107  if (size == I2C_SMBUS_BYTE_DATA) { 
    108108    printf("     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f\n"); 
    109109    for (i = 0; i < 256; i+=16) {