From 3cf3a85b3ca797745900f5b2ba03d308660edfda Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Wed, 16 Dec 1998 02:55:02 +0000 Subject: [PATCH] Very minor changes * Turned the i2c noise level down, by setting the debug_level in algo-bit.c and i2c-core.c to 0 instead of 1. This should stop it from polluting the dmesg output, as it does at this moment. * Renamed gl518-r?0-* entries to gl518sm-r?0-* git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@82 7894878c-1315-0410-8ee3-d5d059ff63e0 --- i2c/MODIFICATIONS | 4 ++++ i2c/algo-bit.c | 2 +- i2c/i2c-core.c | 2 +- kernel/chips/gl518sm.c | 2 +- src/gl518sm.c | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/i2c/MODIFICATIONS b/i2c/MODIFICATIONS index 865412b3..bd4a7429 100644 --- a/i2c/MODIFICATIONS +++ b/i2c/MODIFICATIONS @@ -19,6 +19,10 @@ Here come the changes: Some small changes to make this file compile with 2.0 kernels. These changes will probably be included in the next i2c version. +* algo-bit.c, i2c-core.c: Debugging level turned down + The default debugging level was 1, which created a lot of noise in + the kernel message logs (dmesg) + * New file: Module.mk The Makefile fragment we use to compile the files in this directory. diff --git a/i2c/algo-bit.c b/i2c/algo-bit.c index 1df38ce4..b05cd325 100644 --- a/i2c/algo-bit.c +++ b/i2c/algo-bit.c @@ -70,7 +70,7 @@ static char alg_rcsid[] = "$Id: algo-bit.c,v 1.7 1998/09/28 06:45:38 i2c Exp i2c /* module parameters: */ -int i2c_debug=1; +int i2c_debug=0; int bit_test=0; /* see if the line-setting functions work */ int bit_scan=0; /* have a look at what's hanging 'round */ diff --git a/i2c/i2c-core.c b/i2c/i2c-core.c index 49e80012..888af4d9 100644 --- a/i2c/i2c-core.c +++ b/i2c/i2c-core.c @@ -57,7 +57,7 @@ struct i2c_driver *drivers[I2C_DRIVER_MAX]; int driver_count; /**** debug level */ -int i2c_debug=1; +int i2c_debug=0; /* --------------------------------------------------- * registering functions diff --git a/kernel/chips/gl518sm.c b/kernel/chips/gl518sm.c index 34fbc42e..9624b959 100644 --- a/kernel/chips/gl518sm.c +++ b/kernel/chips/gl518sm.c @@ -264,7 +264,7 @@ int gl518_attach_adapter(struct i2c_adapter *adapter) if ((err = i2c_attach_client(new_client))) goto ERROR2; - sprintf(name,"gl518-r%02x",revision); + sprintf(name,"gl518sm-r%02x",revision); /* Register a new directory entry with module sensors */ if ((err = sensors_register_entry(new_client,name, gl518_dir_table_template)) < 0) diff --git a/src/gl518sm.c b/src/gl518sm.c index 34fbc42e..9624b959 100644 --- a/src/gl518sm.c +++ b/src/gl518sm.c @@ -264,7 +264,7 @@ int gl518_attach_adapter(struct i2c_adapter *adapter) if ((err = i2c_attach_client(new_client))) goto ERROR2; - sprintf(name,"gl518-r%02x",revision); + sprintf(name,"gl518sm-r%02x",revision); /* Register a new directory entry with module sensors */ if ((err = sensors_register_entry(new_client,name, gl518_dir_table_template)) < 0)