Patchwork [maverick] UBUNTU: SAUCE: dell-wmi: Demote unknown WMI event message to pr_debug

login
register
mail settings
Submitter Seth Forshee
Date Dec. 9, 2011, 5:08 p.m.
Message ID <1323450483-19536-2-git-send-email-seth.forshee@canonical.com>
Download mbox | patch
Permalink /patch/130432/
State New
Headers show

Comments

Seth Forshee - Dec. 9, 2011, 5:08 p.m.
This message is informational in nature but is causing users to think
that there's a problem. Demote to pr_debug to silence it by default.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 drivers/platform/x86/dell-wmi.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c
index 12a8e6f..34cc102 100644
--- a/drivers/platform/x86/dell-wmi.c
+++ b/drivers/platform/x86/dell-wmi.c
@@ -23,6 +23,8 @@ 
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
@@ -215,8 +217,8 @@  static void dell_wmi_notify(u32 value, void *context)
 		int reported_key;
 		u16 *buffer_entry = (u16 *)obj->buffer.pointer;
 		if (dell_new_hk_type && (buffer_entry[1] != 0x10)) {
-			printk(KERN_INFO "dell-wmi: Received unknown WMI event"
-					 " (0x%x)\n", buffer_entry[1]);
+			pr_debug("Received unknown WMI event (0x%x)\n",
+				 buffer_entry[1]);
 			kfree(obj);
 			return;
 		}