Skip to contentSkip to conversation

rtc, remove syslog spam on registration

PATCH In review David Brownell 2 participants 2 messages Dec 12, 2006 – Dec 13, 2006 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc, remove syslog spam on registration

This removes some syslog spam as RTC drivers register; debug messages shouldn't come out at "info" level.

drivers/rtc/rtc-proc.c +1 -1
Index: g26/drivers/rtc/rtc-proc.c
===================================================================
@@ -120,7 +120,7 @@ static int rtc_proc_add_device(struct cl
 			ent->owner = rtc->owner;
 			ent->data = class_dev;
 
-			dev_info(class_dev->dev, "rtc intf: proc\n");
+			dev_dbg(class_dev->dev, "rtc intf: proc\n");
 		}
 		else
 			rtc_dev = NULL;
drivers/rtc/rtc-sysfs.c +1 -1
Index: g26/drivers/rtc/rtc-sysfs.c
===================================================================
@@ -83,7 +83,7 @@ static int __devinit rtc_sysfs_add_devic
 {
 	int err;
 
-	dev_info(class_dev->dev, "rtc intf: sysfs\n");
+	dev_dbg(class_dev->dev, "rtc intf: sysfs\n");
 
 	err = sysfs_create_group(&class_dev->kobj, &rtc_attr_group);
 	if (err)
drivers/rtc/rtc-dev.c +1 -1
Index: g26/drivers/rtc/rtc-dev.c
===================================================================
@@ -435,7 +435,7 @@ static int rtc_dev_add_device(struct cla
 		goto err_cdev_del;
 	}
 
-	dev_info(class_dev->dev, "rtc intf: dev (%d:%d)\n",
+	dev_dbg(class_dev->dev, "rtc intf: dev (%d:%d)\n",
 		MAJOR(rtc->rtc_dev->devt),
 		MINOR(rtc->rtc_dev->devt));
 
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Tue, 12 Dec 2006 11:23:55 -0800 David Brownell <[email protected]> wrote:

This removes some syslog spam as RTC drivers register; debug messages shouldn't come out at "info" level.

Thanks David,

please also cc [email protected] on future patches.

Signature · 6 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it