diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-02-08 05:12:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 19:01:19 -0500 |
commit | 88549d6b76346e677da8d2d52b37615df18a4345 (patch) | |
tree | b33b752f2bcfc413383606b444649173443f7dca /drivers/isdn | |
parent | e11e7ac1ecac6b25439c003c5ca661cd399ec35d (diff) |
CAPI: Reduce chattiness during module loading/removal
The CVS revisions dumped by all CAPI modules are meaningless today. And
that some CAPI module is loaded or removed does not necessarily deserve
a message. Just keep the message of the central module, capi.ko, drop
the rest.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/capi/capi.c | 19 | ||||
-rw-r--r-- | drivers/isdn/capi/capidrv.c | 26 | ||||
-rw-r--r-- | drivers/isdn/capi/capifs.c | 20 | ||||
-rw-r--r-- | drivers/isdn/capi/kcapi.c | 27 |
4 files changed, 9 insertions, 83 deletions
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index dc5ac52986ee..3b077978c496 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -45,8 +45,6 @@ | |||
45 | 45 | ||
46 | #include "capifs.h" | 46 | #include "capifs.h" |
47 | 47 | ||
48 | static char *revision = "$Revision: 1.1.2.7 $"; | ||
49 | |||
50 | MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface"); | 48 | MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface"); |
51 | MODULE_AUTHOR("Carsten Paeth"); | 49 | MODULE_AUTHOR("Carsten Paeth"); |
52 | MODULE_LICENSE("GPL"); | 50 | MODULE_LICENSE("GPL"); |
@@ -1489,21 +1487,11 @@ static void __exit proc_exit(void) | |||
1489 | /* -------- init function and module interface ---------------------- */ | 1487 | /* -------- init function and module interface ---------------------- */ |
1490 | 1488 | ||
1491 | 1489 | ||
1492 | static char rev[32]; | ||
1493 | |||
1494 | static int __init capi_init(void) | 1490 | static int __init capi_init(void) |
1495 | { | 1491 | { |
1496 | char *p; | 1492 | const char *compileinfo; |
1497 | char *compileinfo; | ||
1498 | int major_ret; | 1493 | int major_ret; |
1499 | 1494 | ||
1500 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | ||
1501 | strlcpy(rev, p + 2, sizeof(rev)); | ||
1502 | if ((p = strchr(rev, '$')) != NULL && p > rev) | ||
1503 | *(p-1) = 0; | ||
1504 | } else | ||
1505 | strcpy(rev, "1.0"); | ||
1506 | |||
1507 | major_ret = register_chrdev(capi_major, "capi20", &capi_fops); | 1495 | major_ret = register_chrdev(capi_major, "capi20", &capi_fops); |
1508 | if (major_ret < 0) { | 1496 | if (major_ret < 0) { |
1509 | printk(KERN_ERR "capi20: unable to get major %d\n", capi_major); | 1497 | printk(KERN_ERR "capi20: unable to get major %d\n", capi_major); |
@@ -1537,8 +1525,8 @@ static int __init capi_init(void) | |||
1537 | #else | 1525 | #else |
1538 | compileinfo = " (no middleware)"; | 1526 | compileinfo = " (no middleware)"; |
1539 | #endif | 1527 | #endif |
1540 | printk(KERN_NOTICE "capi20: Rev %s: started up with major %d%s\n", | 1528 | printk(KERN_NOTICE "CAPI 2.0 started up with major %d%s\n", |
1541 | rev, capi_major, compileinfo); | 1529 | capi_major, compileinfo); |
1542 | 1530 | ||
1543 | return 0; | 1531 | return 0; |
1544 | } | 1532 | } |
@@ -1554,7 +1542,6 @@ static void __exit capi_exit(void) | |||
1554 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE | 1542 | #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE |
1555 | capinc_tty_exit(); | 1543 | capinc_tty_exit(); |
1556 | #endif | 1544 | #endif |
1557 | printk(KERN_NOTICE "capi: Rev %s: unloaded\n", rev); | ||
1558 | } | 1545 | } |
1559 | 1546 | ||
1560 | module_init(capi_init); | 1547 | module_init(capi_init); |
diff --git a/drivers/isdn/capi/capidrv.c b/drivers/isdn/capi/capidrv.c index bb450152fb74..7d8899ad5796 100644 --- a/drivers/isdn/capi/capidrv.c +++ b/drivers/isdn/capi/capidrv.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/isdn/capicmd.h> | 35 | #include <linux/isdn/capicmd.h> |
36 | #include "capidrv.h" | 36 | #include "capidrv.h" |
37 | 37 | ||
38 | static char *revision = "$Revision: 1.1.2.2 $"; | ||
39 | static int debugmode = 0; | 38 | static int debugmode = 0; |
40 | 39 | ||
41 | MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux"); | 40 | MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux"); |
@@ -2266,19 +2265,9 @@ static void __exit proc_exit(void) | |||
2266 | static int __init capidrv_init(void) | 2265 | static int __init capidrv_init(void) |
2267 | { | 2266 | { |
2268 | capi_profile profile; | 2267 | capi_profile profile; |
2269 | char rev[32]; | ||
2270 | char *p; | ||
2271 | u32 ncontr, contr; | 2268 | u32 ncontr, contr; |
2272 | u16 errcode; | 2269 | u16 errcode; |
2273 | 2270 | ||
2274 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | ||
2275 | strncpy(rev, p + 2, sizeof(rev)); | ||
2276 | rev[sizeof(rev)-1] = 0; | ||
2277 | if ((p = strchr(rev, '$')) != NULL && p > rev) | ||
2278 | *(p-1) = 0; | ||
2279 | } else | ||
2280 | strcpy(rev, "1.0"); | ||
2281 | |||
2282 | global.ap.rparam.level3cnt = -2; /* number of bchannels twice */ | 2271 | global.ap.rparam.level3cnt = -2; /* number of bchannels twice */ |
2283 | global.ap.rparam.datablkcnt = 16; | 2272 | global.ap.rparam.datablkcnt = 16; |
2284 | global.ap.rparam.datablklen = 2048; | 2273 | global.ap.rparam.datablklen = 2048; |
@@ -2306,29 +2295,14 @@ static int __init capidrv_init(void) | |||
2306 | } | 2295 | } |
2307 | proc_init(); | 2296 | proc_init(); |
2308 | 2297 | ||
2309 | printk(KERN_NOTICE "capidrv: Rev %s: loaded\n", rev); | ||
2310 | return 0; | 2298 | return 0; |
2311 | } | 2299 | } |
2312 | 2300 | ||
2313 | static void __exit capidrv_exit(void) | 2301 | static void __exit capidrv_exit(void) |
2314 | { | 2302 | { |
2315 | char rev[32]; | ||
2316 | char *p; | ||
2317 | |||
2318 | if ((p = strchr(revision, ':')) != NULL) { | ||
2319 | strncpy(rev, p + 1, sizeof(rev)); | ||
2320 | rev[sizeof(rev)-1] = 0; | ||
2321 | if ((p = strchr(rev, '$')) != NULL) | ||
2322 | *p = 0; | ||
2323 | } else { | ||
2324 | strcpy(rev, " ??? "); | ||
2325 | } | ||
2326 | |||
2327 | capi20_release(&global.ap); | 2303 | capi20_release(&global.ap); |
2328 | 2304 | ||
2329 | proc_exit(); | 2305 | proc_exit(); |
2330 | |||
2331 | printk(KERN_NOTICE "capidrv: Rev%s: unloaded\n", rev); | ||
2332 | } | 2306 | } |
2333 | 2307 | ||
2334 | module_init(capidrv_init); | 2308 | module_init(capidrv_init); |
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c index 51c01efe2fe4..8596bd1a4d26 100644 --- a/drivers/isdn/capi/capifs.c +++ b/drivers/isdn/capi/capifs.c | |||
@@ -25,10 +25,6 @@ MODULE_LICENSE("GPL"); | |||
25 | 25 | ||
26 | /* ------------------------------------------------------------------ */ | 26 | /* ------------------------------------------------------------------ */ |
27 | 27 | ||
28 | static char *revision = "$Revision: 1.1.2.3 $"; | ||
29 | |||
30 | /* ------------------------------------------------------------------ */ | ||
31 | |||
32 | #define CAPIFS_SUPER_MAGIC (('C'<<8)|'N') | 28 | #define CAPIFS_SUPER_MAGIC (('C'<<8)|'N') |
33 | 29 | ||
34 | static struct vfsmount *capifs_mnt; | 30 | static struct vfsmount *capifs_mnt; |
@@ -227,21 +223,7 @@ void capifs_free_ncci(struct dentry *dentry) | |||
227 | 223 | ||
228 | static int __init capifs_init(void) | 224 | static int __init capifs_init(void) |
229 | { | 225 | { |
230 | char rev[32]; | 226 | return register_filesystem(&capifs_fs_type); |
231 | char *p; | ||
232 | int err; | ||
233 | |||
234 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | ||
235 | strlcpy(rev, p + 2, sizeof(rev)); | ||
236 | if ((p = strchr(rev, '$')) != NULL && p > rev) | ||
237 | *(p-1) = 0; | ||
238 | } else | ||
239 | strcpy(rev, "1.0"); | ||
240 | |||
241 | err = register_filesystem(&capifs_fs_type); | ||
242 | if (!err) | ||
243 | printk(KERN_NOTICE "capifs: Rev %s\n", rev); | ||
244 | return err; | ||
245 | } | 227 | } |
246 | 228 | ||
247 | static void __exit capifs_exit(void) | 229 | static void __exit capifs_exit(void) |
diff --git a/drivers/isdn/capi/kcapi.c b/drivers/isdn/capi/kcapi.c index b0bacf377c18..ef564ee1c06c 100644 --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c | |||
@@ -35,10 +35,6 @@ | |||
35 | #endif | 35 | #endif |
36 | #include <linux/mutex.h> | 36 | #include <linux/mutex.h> |
37 | 37 | ||
38 | static char *revision = "$Revision: 1.1.2.8 $"; | ||
39 | |||
40 | /* ------------------------------------------------------------- */ | ||
41 | |||
42 | static int showcapimsgs = 0; | 38 | static int showcapimsgs = 0; |
43 | 39 | ||
44 | MODULE_DESCRIPTION("CAPI4Linux: kernel CAPI layer"); | 40 | MODULE_DESCRIPTION("CAPI4Linux: kernel CAPI layer"); |
@@ -1165,25 +1161,12 @@ EXPORT_SYMBOL(capi20_set_callback); | |||
1165 | 1161 | ||
1166 | static int __init kcapi_init(void) | 1162 | static int __init kcapi_init(void) |
1167 | { | 1163 | { |
1168 | char *p; | 1164 | int err; |
1169 | char rev[32]; | ||
1170 | int ret; | ||
1171 | |||
1172 | ret = cdebug_init(); | ||
1173 | if (ret) | ||
1174 | return ret; | ||
1175 | kcapi_proc_init(); | ||
1176 | 1165 | ||
1177 | if ((p = strchr(revision, ':')) != NULL && p[1]) { | 1166 | err = cdebug_init(); |
1178 | strlcpy(rev, p + 2, sizeof(rev)); | 1167 | if (!err) |
1179 | if ((p = strchr(rev, '$')) != NULL && p > rev) | 1168 | kcapi_proc_init(); |
1180 | *(p-1) = 0; | 1169 | return err; |
1181 | } else | ||
1182 | strcpy(rev, "1.0"); | ||
1183 | |||
1184 | printk(KERN_NOTICE "CAPI Subsystem Rev %s\n", rev); | ||
1185 | |||
1186 | return 0; | ||
1187 | } | 1170 | } |
1188 | 1171 | ||
1189 | static void __exit kcapi_exit(void) | 1172 | static void __exit kcapi_exit(void) |