Changeset 4317 for lm-sensors/trunk/prog/dump/isadump.c
- Timestamp:
- 02/04/07 22:03:12 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/dump/isadump.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/dump/isadump.c
r4316 r4317 47 47 unsigned long isa_io_base = 0; /* XXX for now */ 48 48 #endif /* __powerpc__ */ 49 50 char hexchar(int i)51 {52 if ((i >= 0) && (i <= 9))53 return '0' + i;54 else if (i <= 15)55 return 'a' - 10 + i;56 else57 return 'X';58 }59 49 60 50 void help(void) … … 306 296 res = inb(datareg); 307 297 } 308 printf("% c%c ", hexchar(res/16), hexchar(res%16));298 printf("%02x ", res); 309 299 } 310 300 printf("\n");
