add module name to printk's

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1164 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2001-08-25 14:02:20 +00:00
1 parent 51a168ee4a
commit 162eb2711d
1 file changed
+8 -6
+8 -6
View File
@@ -31,6 +31,7 @@
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include "version.h"
#include <linux/init.h>
@@ -55,9 +56,9 @@
#define IOTEXT "via-i2c"
/* ----- global defines ----------------------------------------------- */
#define DEB(x) x /* silicon revision, io addresses */
#define DEB2(x) x /* line status */
#define DEBE(x) /* */
#define DEB(x) x /* silicon revision, io addresses */
#define DEB2(x) x /* line status */
#define DEBE(x) /* */
/* ----- local functions ---------------------------------------------- */
@@ -139,7 +140,7 @@ static int find_via(void)
s_bridge = pci_find_device(VENDOR, DEVICE, NULL);
if (!s_bridge) {
printk("vt82c586b not found\n");
printk("i2c-via.o: vt82c586b not found\n");
return -ENODEV;
}
@@ -176,13 +177,14 @@ extern
#endif
int __init i2c_via_init(void)
{
printk("i2c-via.o version %s (%s)\n", LM_VERSION, LM_DATE);
if (find_via() < 0) {
printk("Error while reading PCI configuration\n");
printk("i2c-via.o: Error while reading PCI configuration\n");
return -ENODEV;
}
if (check_region(I2C_DIR, IOSPACE) < 0) {
printk("IO 0x%x-0x%x already in use\n",
printk("i2c-via.o: IO 0x%x-0x%x already in use\n",
I2C_DIR, I2C_DIR + IOSPACE);
return -EBUSY;
} else {