Jesse Keating 7a32965
--- linux-2.6.26.noarch/drivers/base/power/main.c~	2008-08-22 20:57:57.000000000 -0400
Jesse Keating 7a32965
+++ linux-2.6.26.noarch/drivers/base/power/main.c	2008-08-22 20:58:05.000000000 -0400
Jesse Keating 7a32965
@@ -69,9 +69,6 @@ void device_pm_unlock(void)
Jesse Keating 7a32965
  */
Jesse Keating 7a32965
 void device_pm_add(struct device *dev)
Jesse Keating 7a32965
 {
Jesse Keating 7a32965
-	pr_debug("PM: Adding info for %s:%s\n",
Jesse Keating 7a32965
-		 dev->bus ? dev->bus->name : "No Bus",
Jesse Keating 7a32965
-		 kobject_name(&dev->kobj));
Jesse Keating 7a32965
 	mutex_lock(&dpm_list_mtx);
Jesse Keating 7a32965
 	if (dev->parent) {
Jesse Keating 7a32965
 		if (dev->parent->power.status >= DPM_SUSPENDING)
Jesse Keating 7a32965
From b4e96f34c17e5a79cd28774cc722bb33e7e02c6e Mon Sep 17 00:00:00 2001
Jesse Keating 7a32965
From: Peter Jones <pjones@redhat.com>
Jesse Keating 7a32965
Date: Thu, 25 Sep 2008 16:23:33 -0400
Jesse Keating 7a32965
Subject: [PATCH] Don't print an error message just because there's no i8042 chip.
Jesse Keating 7a32965
Jesse Keating 7a32965
Some systems, such as EFI-based Apple systems, won't necessarily have an
Jesse Keating 7a32965
i8042 to initialize.  We shouldn't be printing an error message in this
Jesse Keating 7a32965
case, since not detecting the chip is the correct behavior.
Jesse Keating 7a32965
---
Jesse Keating 7a32965
 drivers/input/serio/i8042.c |    4 +---
Jesse Keating 7a32965
 1 files changed, 1 insertions(+), 3 deletions(-)
Jesse Keating 7a32965
Jesse Keating 7a32965
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
Jesse Keating 7a32965
index 170f71e..4f3e632 100644
Jesse Keating 7a32965
--- a/drivers/input/serio/i8042.c
Jesse Keating 7a32965
+++ b/drivers/input/serio/i8042.c
Jesse Keating 7a32965
@@ -701,10 +701,8 @@ static int __devinit i8042_check_aux(void)
Jesse Keating 7a32965
 
Jesse Keating 7a32965
 static int i8042_controller_check(void)
Jesse Keating 7a32965
 {
Jesse Keating 7a32965
-	if (i8042_flush() == I8042_BUFFER_SIZE) {
Jesse Keating 7a32965
-		printk(KERN_ERR "i8042.c: No controller found.\n");
Jesse Keating 7a32965
+	if (i8042_flush() == I8042_BUFFER_SIZE)
Jesse Keating 7a32965
 		return -ENODEV;
Jesse Keating 7a32965
-	}
Jesse Keating 7a32965
 
Jesse Keating 7a32965
 	return 0;
Jesse Keating 7a32965
 }
Jesse Keating 7a32965
-- 
Jesse Keating 7a32965
1.6.0.1
Jesse Keating 7a32965
Jesse Keating 7a32965
Socket fuzzers like sfuzz will trigger this printk a lot, even though it's
Jesse Keating 7a32965
ratelimited. It isn't particularly useful, so just remove it.
Jesse Keating 7a32965
Jesse Keating 7a32965
Signed-off-by: Dave Jones <davej@redhat.com>
Jesse Keating 7a32965
Jesse Keating 7a32965
--- linux-2.6.27.noarch/net/can/af_can.c~	2008-12-11 16:53:48.000000000 -0500
Jesse Keating 7a32965
+++ linux-2.6.27.noarch/net/can/af_can.c	2008-12-11 16:54:42.000000000 -0500
Jesse Keating 7a32965
@@ -134,13 +134,9 @@ static int can_create(struct net *net, s
Jesse Keating 7a32965
 		err = request_module("can-proto-%d", protocol);
Jesse Keating 7a32965
 
Jesse Keating 7a32965
 		/*
Jesse Keating 7a32965
-		 * In case of error we only print a message but don't
Jesse Keating 7a32965
-		 * return the error code immediately.  Below we will
Jesse Keating 7a32965
-		 * return -EPROTONOSUPPORT
Jesse Keating 7a32965
+		 * In case of error we don't return the error code immediately.
Jesse Keating 7a32965
+		 * Below we will return -EPROTONOSUPPORT
Jesse Keating 7a32965
 		 */
Jesse Keating 7a32965
-		if (err && printk_ratelimit())
Jesse Keating 7a32965
-			printk(KERN_ERR "can: request_module "
Jesse Keating 7a32965
-			       "(can-proto-%d) failed.\n", protocol);
Jesse Keating 7a32965
 	}
Jesse Keating 7a32965
 #endif
Jesse Keating 7a32965
 
Jesse Keating 7a32965
Some devices (like the nuforce udac) spew this quite a lot.
Jesse Keating 7a32965
This patch kinda sucks, but it'll shut things up for now.
Jesse Keating 7a32965
Jesse Keating 7a32965
Probably not an upstream candidate. I suspect the answer would be 
Jesse Keating 7a32965
"don't turn SND_DEBUG then"
Jesse Keating 7a32965
Jesse Keating 7a32965
--- linux-2.6.34.noarch/sound/usb/clock.c~	2010-07-16 22:11:41.000000000 -0400
Jesse Keating 7a32965
+++ linux-2.6.34.noarch/sound/usb/clock.c	2010-07-16 22:15:21.000000000 -0400
Jesse Keating 7a32965
@@ -212,8 +212,13 @@ static int set_sample_rate_v1(struct snd
Jesse Keating 7a32965
 
Jesse Keating 7a32965
 	/* if endpoint doesn't have sampling rate control, bail out */
Jesse Keating 7a32965
 	if (!(fmt->attributes & UAC_EP_CS_ATTR_SAMPLE_RATE)) {
Jesse Keating 7a32965
-		snd_printk(KERN_WARNING "%d:%d:%d: endpoint lacks sample rate attribute bit, cannot set.\n",
Jesse Keating 7a32965
+		static int once;
Jesse Keating 7a32965
+
Jesse Keating 7a32965
+		if (!once) {
Jesse Keating 7a32965
+			snd_printk(KERN_WARNING "%d:%d:%d: endpoint lacks sample rate attribute bit, cannot set.\n",
Jesse Keating 7a32965
 				   dev->devnum, iface, fmt->altsetting);
Jesse Keating 7a32965
+			once = 1;
Jesse Keating 7a32965
+		}
Jesse Keating 7a32965
 		return 0;
Jesse Keating 7a32965
 	}
Jesse Keating 7a32965