From a62634d9fef70eb74f6d8164cf303aef6f2f0463 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Thu, 29 Dec 2011 20:55:21 +0100 Subject: [PATCH] Fix misleading warning, changed LOG_INFO -> LOG_DEBUG --- bbswitch.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index b630de6..c4343a3 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -144,9 +144,9 @@ static int bbswitch_optimus_dsm(void) { char args[] = {1, 0, 0, 3}; u32 result = 0; - if (!acpi_call_dsm(dis_handle, acpi_optimus_dsm_muid, 0x100, 0x1A, args, + if (acpi_call_dsm(dis_handle, acpi_optimus_dsm_muid, 0x100, 0x1A, args, &result)) { - printk(KERN_INFO "bbswitch: Result of Optimus _DSM call: %08X\n", + printk(KERN_DEBUG "bbswitch: Result of Optimus _DSM call: %08X\n", result); return 0; } @@ -159,12 +159,12 @@ static int bbswitch_acpi_off(void) { char args[] = {2, 0, 0, 0}; u32 result = 0; - if (!acpi_call_dsm(dis_handle, acpi_nvidia_dsm_muid, 0x102, 0x3, args, + if (acpi_call_dsm(dis_handle, acpi_nvidia_dsm_muid, 0x102, 0x3, args, &result)) { // failure return 1; } - printk(KERN_INFO "bbswitch: Result of _DSM call for OFF: %08X\n", + printk(KERN_DEBUG "bbswitch: Result of _DSM call for OFF: %08X\n", result); } return 0; @@ -180,7 +180,7 @@ static int bbswitch_acpi_on(void) { // failure return 1; } - printk(KERN_INFO "bbswitch: Result of _DSM call for ON: %08X\n", + printk(KERN_DEBUG "bbswitch: Result of _DSM call for ON: %08X\n", result); } return 0;