Gentoo Archives: gentoo-user

From: "Vladimir G. Ivanovic" <vgivanovic@×××××××.net>
To: gentoo-user@l.g.o
Cc: Richard Fish <bigfish@××××××××××.org>
Subject: Re: [gentoo-user] What program produces message like these?
Date: Thu, 30 Mar 2006 05:45:39
Message-Id: 1143683686.15527.3.camel@scarlatti.leonora.org
In Reply to: Re: [gentoo-user] What program produces message like these? by "Vladimir G. Ivanovic"
1 Fixed by turning off DEBUG_DRIVER.
2
3 ---- Vladimir
4
5 On Wed, 2006-03-29 at 13:57 -0800, Vladimir G. Ivanovic wrote:
6
7 > Many thanks for the hints. It looks like I (accidentally) had driver
8 > debugging turned on. I'm recompiling my kernel to see if that fixes my
9 > problem.
10 >
11 > --- Vladimir
12 >
13 > On Wed, 2006-03-29 at 10:34 -0700, Richard Fish wrote:
14 >
15 > > On 3/29/06, Vladimir G. Ivanovic <vgivanovic@×××××××.net> wrote:
16 > > > CLASS: registering class device: ID = 'vcs7'
17 > > > class_uevent - name = vcs7
18 > > > class_device_create_uevent called for vcs7
19 > > > CLASS: registering class device: ID = 'vcsa7'
20 > > > class_uevent - name = vcsa7
21 > > > class_device_create_uevent called for vcsa7
22 > > >
23 > > > And, more importantly, how do I get rid of them? They fill up my kernel
24 > > > ring buffer, and I can't see boot-time messages from the kernel.
25 > >
26 > > AFAIK if they are showing up in dmesg output, they are coming from the
27 > > kernel. Looks like you enabled DEBUG in your kernel:
28 > >
29 > > # cd /usr/src/linux-2.6.16.1 && grep -r class_device_create_uevent .
30 > > ./drivers/base/class.c:static int class_device_create_uevent(struct
31 > > class_device *class_dev,
32 > >
33 > > # less drivers/base/class.c
34 > > ...
35 > > pr_debug("%s called for %s\n", __FUNCTION__, class_dev->class_id);
36 > > ...
37 > >
38 > > # grep -r pr_debug . | grep "define"
39 > > ...
40 > > ./include/linux/kernel.h:#define pr_debug(fmt,arg...) \
41 > > ...
42 > >
43 > > # less include/linux/kernel.h
44 > > ...
45 > > #ifdef DEBUG
46 > > #define pr_debug(fmt,arg...) \
47 > > printk(KERN_DEBUG fmt,##arg)
48 > > ...
49 > >
50 > > But the boot-time messages should be saved in /var/log/dmesg.
51 > >
52 > > -Richard
53 > >
54 >
55 >
56 > Vladimir G. Ivanovic
57 > Palo Alto, CA 94306
58 > +1 650 678 8014
59
60
61 Vladimir G. Ivanovic
62 Palo Alto, CA 94306
63 +1 650 678 8014