Show
Ignore:
Timestamp:
11/27/98 01:26:51 (15 years ago)
Author:
frodo
Message:

Start of i2c-bus, a module for displaying i2c bus information in /proc

Nothing much here yet, except some code to create /proc/bus/i2c. Should work
for kernels 2.0 and 2.1 (please test).

Other notable things:

printk statements in all modules made to have to same 'look'.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/src/smbus.c

    r13 r15  
    115115                       int num) 
    116116{ 
    117   printk("smbus_master_xfer called for adapter `%s' " 
     117  printk("smbus.o: smbus_master_xfer called for adapter `%s' " 
    118118         "(no i2c level access possible!)\n", 
    119119         adap->name); 
     
    124124int smbus_slave_send (struct smbus_adapter *adap, char *data, int len) 
    125125{ 
    126   printk("smbus_slave_send called for adapter `%s' " 
     126  printk("smbus.o: smbus_slave_send called for adapter `%s' " 
    127127         "(no i2c level access possible!)\n", 
    128128         adap->name); 
     
    133133int smbus_slave_recv (struct smbus_adapter *adap, char *data, int len) 
    134134{ 
    135   printk("smbus_slave_recv called for adapter `%s' " 
     135  printk("smbus.o: smbus_slave_recv called for adapter `%s' " 
    136136         "(no i2c level access possible!)\n", 
    137137         adap->name); 
     
    164164  printk("smbus.o version %s (%s)\n",LM_VERSION,LM_DATE); 
    165165  if ((res = smbus_add_algorithm(&smbus_algorithm))) 
    166     printk("Module smbus.o not inserted!\n"); 
     166    printk("smbus.o: Algorithm registration failed, module not inserted.\n"); 
    167167  else 
    168168    printk("smbus.o initialized\n"); 
     
    174174  int res; 
    175175  if ((res = smbus_del_algorithm(&smbus_algorithm))) 
    176     printk("Module smbus.o could not be removed cleanly!\n"); 
     176    printk("smbus.o: Algorithm deregistration failed, module not removed\n"); 
    177177  return res; 
    178178}