Mercurial > pt1.oyama
changeset 93:ee357d8f987f
suppress silly warning
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 28 Jan 2010 15:54:04 +0900 |
parents | 1086bec1a684 |
children | c940283dd890 |
files | driver/Makefile driver/pt1_pci.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/driver/Makefile Thu Jan 28 00:18:51 2010 +0900 +++ b/driver/Makefile Thu Jan 28 15:54:04 2010 +0900 @@ -2,6 +2,7 @@ VERBOSITY = 0 REL_VERSION = "1.1.0" REL_DATE = "2010-01-27" +EXTRA_CFLAGS += -Wformat=2 all: ${TARGET}
--- a/driver/pt1_pci.c Thu Jan 28 00:18:51 2010 +0900 +++ b/driver/pt1_pci.c Thu Jan 28 15:54:04 2010 +0900 @@ -42,7 +42,7 @@ /* These identify the driver base version and may not be removed. */ static char version[] __devinitdata = -KERN_INFO DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n"; +DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n"; MODULE_AUTHOR("Tomoaki Ishikawa tomy@users.sourceforge.jp and Yoshiki Yazawa yaz@honeyplanet.jp"); #define DRIVER_DESC "PCI earthsoft PT1/2 driver" @@ -931,7 +931,7 @@ static int __init pt1_pci_init(void) { - printk(version); + printk(KERN_INFO "%s", version); pt1video_class = class_create(THIS_MODULE, DRIVERNAME); if (IS_ERR(pt1video_class)) return PTR_ERR(pt1video_class);