From d0c7529cb9833ede3595051df5599a11fe03be48 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 5 Apr 2007 15:25:19 +0200 Subject: import new upstream --- plugin_i2c_sensors.c | 111 ++------------------------------------------------- 1 file changed, 3 insertions(+), 108 deletions(-) (limited to 'plugin_i2c_sensors.c') diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c index b3bbc2f..cba3827 100644 --- a/plugin_i2c_sensors.c +++ b/plugin_i2c_sensors.c @@ -1,4 +1,5 @@ -/* $Id: plugin_i2c_sensors.c,v 1.25 2006/02/25 13:36:33 geronet Exp $ +/* $Id: plugin_i2c_sensors.c 728 2007-01-14 11:14:38Z michael $ + * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/plugin_i2c_sensors.c $ * * I2C sensors plugin * @@ -21,112 +22,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * - * - * $Log: plugin_i2c_sensors.c,v $ - * Revision 1.25 2006/02/25 13:36:33 geronet - * updated indent.sh, applied coding style - * - * Revision 1.24 2005/05/08 04:32:44 reinelt - * CodingStyle added and applied - * - * Revision 1.23 2005/04/01 05:16:04 reinelt - * moved plugin init stuff to a seperate function called on first use - * - * Revision 1.22 2005/01/18 06:30:23 reinelt - * added (C) to all copyright statements - * - * Revision 1.21 2004/06/26 12:05:00 reinelt - * - * uh-oh... the last CVS log message messed up things a lot... - * - * Revision 1.20 2004/06/26 09:27:21 reinelt - * - * added '-W' to CFLAGS - * changed all C++ comments to C ones - * cleaned up a lot of signed/unsigned mistakes - * - * Revision 1.19 2004/06/20 10:09:56 reinelt - * - * 'const'ified the whole source - * - * Revision 1.18 2004/06/17 06:23:43 reinelt - * - * hash handling rewritten to solve performance issues - * - * Revision 1.17 2004/06/05 14:56:48 reinelt - * - * Cwlinux splash screen fixed - * USBLCD splash screen fixed - * plugin_i2c qprintf("%f") replaced with snprintf() - * - * Revision 1.16 2004/06/01 06:45:30 reinelt - * - * some Fixme's processed - * documented some code - * - * Revision 1.15 2004/05/31 21:05:13 reinelt - * - * fixed lots of bugs in the Cwlinux driver - * do not emit EAGAIN error on the first retry - * made plugin_i2c_sensors a bit less 'chatty' - * moved init and exit functions to the bottom of plugin_pop3 - * - * Revision 1.14 2004/05/09 05:41:42 reinelt - * - * i2c fix for kernel 2.6.5 (temp_input1 vs. temp1_input) from Xavier - * - * Revision 1.13 2004/03/03 03:47:04 reinelt - * big patch from Martin Hejl: - * - use qprintf() where appropriate - * - save CPU cycles on gettimeofday() - * - add quit() functions to free allocated memory - * - fixed lots of memory leaks - * - * Revision 1.12 2004/02/16 08:19:44 reinelt - * i2c_sensors patch from Xavier - * - * Revision 1.11 2004/02/15 21:43:43 reinelt - * T6963 driver nearly finished - * framework for graphic displays done - * i2c_sensors patch from Xavier - * some more old generation files removed - * - * Revision 1.10 2004/02/14 12:07:27 nicowallmeier - * minor bugfix - * - * Revision 1.9 2004/02/14 11:56:17 reinelt - * M50530 driver ported - * changed lots of 'char' to 'unsigned char' - * - * Revision 1.8 2004/02/14 10:09:50 reinelt - * I2C Sensors for 2.4 kernels (/proc instead of /sysfs) - * - * Revision 1.7 2004/01/30 20:57:56 reinelt - * HD44780 patch from Martin Hejl - * dmalloc integrated - * - * Revision 1.6 2004/01/30 07:12:35 reinelt - * HD44780 busy-flag support from Martin Hejl - * loadavg() uClibc replacement from Martin Heyl - * round() uClibc replacement from Martin Hejl - * warning in i2c_sensors fixed - * - * Revision 1.5 2004/01/29 05:55:30 reinelt - * check for /sys mounted - * - * Revision 1.4 2004/01/29 04:40:02 reinelt - * every .c file includes "config.h" now - * - * Revision 1.3 2004/01/27 08:13:39 reinelt - * ported PPP token to plugin_ppp - * - * Revision 1.2 2004/01/27 05:06:10 reinelt - * i2c update from Xavier - * - * Revision 1.1 2004/01/10 17:36:56 reinelt - * - * I2C Sensors plugin from Xavier added - * */ /* @@ -414,7 +309,7 @@ static int configure_i2c_sensors(void) } else if (strncmp(path, "/proc", 5) == 0) { parse_i2c_sensors = parse_i2c_sensors_procfs; } else { - error("i2c_sensors: unknown path %s, should start with /sys or /proc"); + error("i2c_sensors: unknown path %s, should start with /sys or /proc", path); configured = -1; return configured; } -- cgit v1.2.3