From: Kitae Kim Date: Thu, 24 Oct 2013 05:30:20 +0000 (+0900) Subject: brillcodec: disable debug messages. X-Git-Tag: 2.2.1_release^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d09ed0fecd9c30e51f37bd90dcc9f0fd823daf69;p=sdk%2Femulator%2Femulator-kernel.git brillcodec: disable debug messages. Debug messages might affect performance, especially on Windows even if the messages are not printed into klog file. Signed-off-by: Kitae Kim --- diff --git a/drivers/maru/maru_brill_codec.c b/drivers/maru/maru_brill_codec.c index 2790d3a9c8b3..7820eaaba19b 100644 --- a/drivers/maru/maru_brill_codec.c +++ b/drivers/maru/maru_brill_codec.c @@ -63,7 +63,7 @@ MODULE_LICENSE("GPL2"); #define CODEC_IRQ_TASK 0x1f // DEBUG -#ifndef CODEC_DEBUG +#ifdef CODEC_DEBUG #define DEBUG(fmt, ...) \ printk(KERN_DEBUG "[%s][%d]: " fmt, DEVICE_NAME, __LINE__, ##__VA_ARGS__) @@ -1329,7 +1329,7 @@ static void maru_brill_codec_get_device_version(void) maru_brill_codec->version = readl(maru_brill_codec->ioaddr + CODEC_CMD_GET_VERSION); - INFO("device version: %d\n", + printk(KERN_INFO "device version: %d\n", maru_brill_codec->version); } @@ -1338,7 +1338,7 @@ static int __devinit maru_brill_codec_probe(struct pci_dev *pci_dev, { int ret = 0; - INFO("%s: driver is probed.\n", DEVICE_NAME); + printk(KERN_INFO "%s: driver is probed.\n", DEVICE_NAME); maru_brill_codec = kzalloc(sizeof(struct maru_brill_codec_device), GFP_KERNEL); if (!maru_brill_codec) { @@ -1479,7 +1479,7 @@ static struct pci_driver driver = { static int __init maru_brill_codec_init(void) { - INFO("driver is initialized.\n"); + printk(KERN_INFO "driver is initialized.\n"); maru_brill_codec_bh_workqueue = create_workqueue ("maru_brill_codec"); if (!maru_brill_codec_bh_workqueue) { @@ -1492,7 +1492,7 @@ static int __init maru_brill_codec_init(void) static void __exit maru_brill_codec_exit(void) { - INFO("driver is finalized.\n"); + printk(KERN_INFO "driver is finalized.\n"); if (maru_brill_codec_bh_workqueue) { destroy_workqueue (maru_brill_codec_bh_workqueue);