Changeset 157

Show
Ignore:
Timestamp:
01/11/99 18:06:18 (14 years ago)
Author:
frodo
Message:

More better DEBUG stuff for piix4, removed compile warning for sensors.c

Location:
lm-sensors/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r156 r157  
    285285#endif 
    286286  } 
     287#ifdef DEBUG 
     288  printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
     289         "DAT0=%02x, DAT1=%02x\n", 
     290         inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     291         inb_p(SMBHSTDAT1)); 
     292#endif 
    287293  return result; 
    288294} 
     
    294300  int i,len; 
    295301 
    296 #ifdef DEBUG 
    297   printk("piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, " 
    298          "DAT0=%02x, DAT1=%02x\n", 
    299          inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
    300          inb_p(SMBHSTDAT1)); 
    301 #endif 
    302302  switch(size) { 
    303303    case SMBUS_PROC_CALL: 
     
    377377      break; 
    378378  } 
    379 #ifdef DEBUG 
    380   printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
    381          "DAT0=%02x, DAT1=%02x\n", 
    382          inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
    383          inb_p(SMBHSTDAT1)); 
    384 #endif 
    385379  return 0; 
    386380} 
  • lm-sensors/trunk/kernel/sensors.c

    r132 r157  
    216216} 
    217217 
    218 /* Monitor access for /proc/sys/dev/sensors/* directories; make unloading 
     218/* Monitor access for /proc/sys/dev/sensors/ directories; make unloading 
    219219   the corresponding module impossible if some process still uses it or 
    220220   some file in it */ 
  • lm-sensors/trunk/src/piix4.c

    r156 r157  
    285285#endif 
    286286  } 
     287#ifdef DEBUG 
     288  printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
     289         "DAT0=%02x, DAT1=%02x\n", 
     290         inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
     291         inb_p(SMBHSTDAT1)); 
     292#endif 
    287293  return result; 
    288294} 
     
    294300  int i,len; 
    295301 
    296 #ifdef DEBUG 
    297   printk("piix4.o: Transaction (pre): CNT=%02x, CMD=%02x, ADD=%02x, " 
    298          "DAT0=%02x, DAT1=%02x\n", 
    299          inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
    300          inb_p(SMBHSTDAT1)); 
    301 #endif 
    302302  switch(size) { 
    303303    case SMBUS_PROC_CALL: 
     
    377377      break; 
    378378  } 
    379 #ifdef DEBUG 
    380   printk("piix4.o: Transaction (post): CNT=%02x, CMD=%02x, ADD=%02x, " 
    381          "DAT0=%02x, DAT1=%02x\n", 
    382          inb_p(SMBHSTCNT),inb_p(SMBHSTCMD),inb_p(SMBHSTADD),inb_p(SMBHSTDAT0), 
    383          inb_p(SMBHSTDAT1)); 
    384 #endif 
    385379  return 0; 
    386380} 
  • lm-sensors/trunk/src/sensors.c

    r132 r157  
    216216} 
    217217 
    218 /* Monitor access for /proc/sys/dev/sensors/* directories; make unloading 
     218/* Monitor access for /proc/sys/dev/sensors/ directories; make unloading 
    219219   the corresponding module impossible if some process still uses it or 
    220220   some file in it */