From 162eb2711d88bfdcbed9919091d19b8fed6297d1 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 25 Aug 2001 14:02:20 +0000 Subject: [PATCH] add module name to printk's git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1164 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/busses/i2c-via.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kernel/busses/i2c-via.c b/kernel/busses/i2c-via.c index b98a2669..7c19a35a 100644 --- a/kernel/busses/i2c-via.c +++ b/kernel/busses/i2c-via.c @@ -31,6 +31,7 @@ #include #include +#include "version.h" #include @@ -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 {