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>
This commit is contained in:
Jan Kiszka 2010-02-08 10:12:09 +00:00 коммит произвёл David S. Miller
Родитель e11e7ac1ec
Коммит 88549d6b76
4 изменённых файлов: 9 добавлений и 83 удалений

Просмотреть файл

@ -45,8 +45,6 @@
#include "capifs.h" #include "capifs.h"
static char *revision = "$Revision: 1.1.2.7 $";
MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface"); MODULE_DESCRIPTION("CAPI4Linux: Userspace /dev/capi20 interface");
MODULE_AUTHOR("Carsten Paeth"); MODULE_AUTHOR("Carsten Paeth");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
@ -1489,21 +1487,11 @@ static void __exit proc_exit(void)
/* -------- init function and module interface ---------------------- */ /* -------- init function and module interface ---------------------- */
static char rev[32];
static int __init capi_init(void) static int __init capi_init(void)
{ {
char *p; const char *compileinfo;
char *compileinfo;
int major_ret; int major_ret;
if ((p = strchr(revision, ':')) != NULL && p[1]) {
strlcpy(rev, p + 2, sizeof(rev));
if ((p = strchr(rev, '$')) != NULL && p > rev)
*(p-1) = 0;
} else
strcpy(rev, "1.0");
major_ret = register_chrdev(capi_major, "capi20", &capi_fops); major_ret = register_chrdev(capi_major, "capi20", &capi_fops);
if (major_ret < 0) { if (major_ret < 0) {
printk(KERN_ERR "capi20: unable to get major %d\n", capi_major); printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);
@ -1537,8 +1525,8 @@ static int __init capi_init(void)
#else #else
compileinfo = " (no middleware)"; compileinfo = " (no middleware)";
#endif #endif
printk(KERN_NOTICE "capi20: Rev %s: started up with major %d%s\n", printk(KERN_NOTICE "CAPI 2.0 started up with major %d%s\n",
rev, capi_major, compileinfo); capi_major, compileinfo);
return 0; return 0;
} }
@ -1554,7 +1542,6 @@ static void __exit capi_exit(void)
#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE #ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
capinc_tty_exit(); capinc_tty_exit();
#endif #endif
printk(KERN_NOTICE "capi: Rev %s: unloaded\n", rev);
} }
module_init(capi_init); module_init(capi_init);

Просмотреть файл

@ -35,7 +35,6 @@
#include <linux/isdn/capicmd.h> #include <linux/isdn/capicmd.h>
#include "capidrv.h" #include "capidrv.h"
static char *revision = "$Revision: 1.1.2.2 $";
static int debugmode = 0; static int debugmode = 0;
MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux"); MODULE_DESCRIPTION("CAPI4Linux: Interface to ISDN4Linux");
@ -2266,19 +2265,9 @@ static void __exit proc_exit(void)
static int __init capidrv_init(void) static int __init capidrv_init(void)
{ {
capi_profile profile; capi_profile profile;
char rev[32];
char *p;
u32 ncontr, contr; u32 ncontr, contr;
u16 errcode; u16 errcode;
if ((p = strchr(revision, ':')) != NULL && p[1]) {
strncpy(rev, p + 2, sizeof(rev));
rev[sizeof(rev)-1] = 0;
if ((p = strchr(rev, '$')) != NULL && p > rev)
*(p-1) = 0;
} else
strcpy(rev, "1.0");
global.ap.rparam.level3cnt = -2; /* number of bchannels twice */ global.ap.rparam.level3cnt = -2; /* number of bchannels twice */
global.ap.rparam.datablkcnt = 16; global.ap.rparam.datablkcnt = 16;
global.ap.rparam.datablklen = 2048; global.ap.rparam.datablklen = 2048;
@ -2306,29 +2295,14 @@ static int __init capidrv_init(void)
} }
proc_init(); proc_init();
printk(KERN_NOTICE "capidrv: Rev %s: loaded\n", rev);
return 0; return 0;
} }
static void __exit capidrv_exit(void) static void __exit capidrv_exit(void)
{ {
char rev[32];
char *p;
if ((p = strchr(revision, ':')) != NULL) {
strncpy(rev, p + 1, sizeof(rev));
rev[sizeof(rev)-1] = 0;
if ((p = strchr(rev, '$')) != NULL)
*p = 0;
} else {
strcpy(rev, " ??? ");
}
capi20_release(&global.ap); capi20_release(&global.ap);
proc_exit(); proc_exit();
printk(KERN_NOTICE "capidrv: Rev%s: unloaded\n", rev);
} }
module_init(capidrv_init); module_init(capidrv_init);

Просмотреть файл

@ -25,10 +25,6 @@ MODULE_LICENSE("GPL");
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
static char *revision = "$Revision: 1.1.2.3 $";
/* ------------------------------------------------------------------ */
#define CAPIFS_SUPER_MAGIC (('C'<<8)|'N') #define CAPIFS_SUPER_MAGIC (('C'<<8)|'N')
static struct vfsmount *capifs_mnt; static struct vfsmount *capifs_mnt;
@ -227,21 +223,7 @@ void capifs_free_ncci(struct dentry *dentry)
static int __init capifs_init(void) static int __init capifs_init(void)
{ {
char rev[32]; return register_filesystem(&capifs_fs_type);
char *p;
int err;
if ((p = strchr(revision, ':')) != NULL && p[1]) {
strlcpy(rev, p + 2, sizeof(rev));
if ((p = strchr(rev, '$')) != NULL && p > rev)
*(p-1) = 0;
} else
strcpy(rev, "1.0");
err = register_filesystem(&capifs_fs_type);
if (!err)
printk(KERN_NOTICE "capifs: Rev %s\n", rev);
return err;
} }
static void __exit capifs_exit(void) static void __exit capifs_exit(void)

Просмотреть файл

@ -35,10 +35,6 @@
#endif #endif
#include <linux/mutex.h> #include <linux/mutex.h>
static char *revision = "$Revision: 1.1.2.8 $";
/* ------------------------------------------------------------- */
static int showcapimsgs = 0; static int showcapimsgs = 0;
MODULE_DESCRIPTION("CAPI4Linux: kernel CAPI layer"); MODULE_DESCRIPTION("CAPI4Linux: kernel CAPI layer");
@ -1165,25 +1161,12 @@ EXPORT_SYMBOL(capi20_set_callback);
static int __init kcapi_init(void) static int __init kcapi_init(void)
{ {
char *p; int err;
char rev[32];
int ret;
ret = cdebug_init(); err = cdebug_init();
if (ret) if (!err)
return ret; kcapi_proc_init();
kcapi_proc_init(); return err;
if ((p = strchr(revision, ':')) != NULL && p[1]) {
strlcpy(rev, p + 2, sizeof(rev));
if ((p = strchr(rev, '$')) != NULL && p > rev)
*(p-1) = 0;
} else
strcpy(rev, "1.0");
printk(KERN_NOTICE "CAPI Subsystem Rev %s\n", rev);
return 0;
} }
static void __exit kcapi_exit(void) static void __exit kcapi_exit(void)