Commit 0ed081ce203b0fd9a44763b70f41e36596f9b431
Committed by
Jens Axboe
1 parent
1c1133e1ff
Exists in
master
and in
20 other branches
bsg: minor cleanup
- fix MODULE_DESCRIPTION typo. - unify MODULE_DESCRIPTION and bsg_version. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff
block/bsg.c
... | ... | @@ -33,7 +33,8 @@ |
33 | 33 | #include <scsi/scsi_driver.h> |
34 | 34 | #include <scsi/sg.h> |
35 | 35 | |
36 | -const static char bsg_version[] = "block layer sg (bsg) 0.4"; | |
36 | +#define BSG_DESCRIPTION "Block layer SCSI generic (bsg) driver" | |
37 | +#define BSG_VERSION "0.4" | |
37 | 38 | |
38 | 39 | struct bsg_device { |
39 | 40 | request_queue_t *queue; |
... | ... | @@ -1072,7 +1073,8 @@ |
1072 | 1073 | if (ret) |
1073 | 1074 | goto remove_cdev; |
1074 | 1075 | |
1075 | - printk(KERN_INFO "%s loaded (major %d)\n", bsg_version, bsg_major); | |
1076 | + printk(KERN_INFO BSG_DESCRIPTION "version " BSG_VERSION | |
1077 | + " loaded (major %d)\n", bsg_major); | |
1076 | 1078 | return 0; |
1077 | 1079 | remove_cdev: |
1078 | 1080 | printk(KERN_ERR "bsg: failed register scsi interface %d\n", ret); |
... | ... | @@ -1087,7 +1089,7 @@ |
1087 | 1089 | } |
1088 | 1090 | |
1089 | 1091 | MODULE_AUTHOR("Jens Axboe"); |
1090 | -MODULE_DESCRIPTION("Block layer SGSI generic (sg) driver"); | |
1092 | +MODULE_DESCRIPTION(BSG_DESCRIPTION); | |
1091 | 1093 | MODULE_LICENSE("GPL"); |
1092 | 1094 | |
1093 | 1095 | device_initcall(bsg_init); |