From bddf810ebe50ab01dbdcdf3cc5edde07f3d71da1 Mon Sep 17 00:00:00 2001 From: Kyosti Malkki Date: Wed, 21 Jul 1999 10:12:21 +0000 Subject: [PATCH] =?UTF-8?q?(Ky=C3=B6sti)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * renamed SMBUS_* to I2C_SMBUS_* git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@501 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/dump/i2cdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/prog/dump/i2cdump.c b/prog/dump/i2cdump.c index 2d8af084..1337605e 100644 --- a/prog/dump/i2cdump.c +++ b/prog/dump/i2cdump.c @@ -73,11 +73,11 @@ int main(int argc, char *argv[]) if (argc < 4) { fprintf(stderr,"Warning: no size specified (using byte-data access)\n"); - size = SMBUS_BYTE_DATA; + size = I2C_SMBUS_BYTE_DATA; } else if (!strcmp(argv[3],"b")) - size = SMBUS_BYTE_DATA; + size = I2C_SMBUS_BYTE_DATA; else if (!strcmp(argv[3],"w")) - size = SMBUS_WORD_DATA; + size = I2C_SMBUS_WORD_DATA; else { fprintf(stderr,"Error: Third argument not recognized!\n"); help(); @@ -100,11 +100,11 @@ int main(int argc, char *argv[]) fprintf(stderr," WARNING! This program can confuse your I2C bus, " "cause data loss and worse!\n"); fprintf(stderr," I will probe file %s, address 0x%x, mode %s\n", - filename,address,size == SMBUS_BYTE_DATA?"byte":"word"); + filename,address,size == I2C_SMBUS_BYTE_DATA?"byte":"word"); fprintf(stderr," You have five seconds to reconsider and press CTRL-C!\n\n"); sleep(5); - if (size == SMBUS_BYTE_DATA) { + if (size == I2C_SMBUS_BYTE_DATA) { printf(" 0 1 2 3 4 5 6 7 8 9 a b c d e f\n"); for (i = 0; i < 256; i+=16) { printf("%02x: ",i);