Skip to contentSkip to conversation

printk : kernel/softirq.c

PATCH In review Milind A Choudhary(Patni) 3 participants 5 messages Oct 7, 2005 – Oct 9, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk : kernel/softirq.c

Description:
printk() calls should include appropriate KERN_* constant.

The patch

kernel/softirq.c +2 -2
Index: linux-2.6.14-rc3/kernel/softirq.c
===================================================================
@@ -328,7 +328,7 @@ EXPORT_SYMBOL(tasklet_init);
 void tasklet_kill(struct tasklet_struct *t)
 {
 	if (in_interrupt())
-		printk("Attempt to kill tasklet from interrupt\n");
+		printk(KERN_ERR "Attempt to kill tasklet from interrupt\n");
 
 	while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) {
 		do
@@ -458,7 +458,7 @@ static int __devinit cpu_callback(struct
 		BUG_ON(per_cpu(tasklet_hi_vec, hotcpu).list);
 		p = kthread_create(ksoftirqd, hcpu, "ksoftirqd/%d", hotcpu);
 		if (IS_ERR(p)) {
-			printk("ksoftirqd for %i failed\n", hotcpu);
+			printk(KERN_ERR "ksoftirqd for %i failed\n", hotcpu);
 			return NOTIFY_BAD;
 		}
 		kthread_bind(p, hotcpu);

===================================================================
apologies for the disclaimer...I'll fix it soon.. how do I come to know whether my patches are being accepted? kindly let me know..

Thanks & Regards
Milind A Choudhary
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [email protected] and delete this mail.
_____________________________________________________________________

kernel/softirq.c +2 -2
@@ -328,7 +328,7 @@ EXPORT_SYMBOL(tasklet_init);
 void tasklet_kill(struct tasklet_struct *t)
 {
 	if (in_interrupt())
-		printk("Attempt to kill tasklet from interrupt\n");
+		printk(KERN_ERR "Attempt to kill tasklet from interrupt\n");
 
 	while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) {
 		do
@@ -458,7 +458,7 @@ static int __devinit cpu_callback(struct
 		BUG_ON(per_cpu(tasklet_hi_vec, hotcpu).list);
 		p = kthread_create(ksoftirqd, hcpu, "ksoftirqd/%d", hotcpu);
 		if (IS_ERR(p)) {
-			printk("ksoftirqd for %i failed\n", hotcpu);
+			printk(KERN_ERR "ksoftirqd for %i failed\n", hotcpu);
 			return NOTIFY_BAD;
 		}
 		kthread_bind(p, hotcpu);

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 4 lines · Milind A Choudhary(Patni)

Description:
printk() calls should include appropriate KERN_* constant.

Hi,

You seems to make printk patch. Have you made all patches for arch/i386 as you have begun ?

Have a nice day,

- Christophe ([email protected])

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#2 lore raw
In reply to Milind A Choudhary(Patni)

Christophe Lucas [[email protected]] Wrote::

Quoted 5 lines
Quoted 3 lines · Milind A Choudhary(Patni)

Description:
printk() calls should include appropriate KERN_* constant.

Quoted 7 lines
Quoted 1 line

Hi,

You seems to make printk patch. Have you made all patches for arch/i386 as you have begun ?

These are my first patches thats why i thougt
doing some printk work would be a good startup..
I've started looking into kernel/*
haven't yet looked at arch/i386.
are you planning to take it up?

I'd like to know how do we,@ KJ, ensure that there is no repetition of work.. is the work delegated or voluntarily taken up throgh such discussions only? kindly let me know.

~Milind

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [email protected] and delete this mail.
_____________________________________________________________________

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#3 lore raw
In reply to Milind A Choudhary(Patni)
Quoted 12 lines · Milind A Choudhary(Patni)

Christophe Lucas [[email protected]] Wrote::

Quoted 9 lines
Quoted 4 lines · Milind A Choudhary(Patni)

Description:
printk() calls should include appropriate KERN_* constant.

Hi,

Quoted 8 lines
Quoted 3 lines

You seems to make printk patch. Have you made all patches for arch/i386 as you have begun ?

These are my first patches thats why i thougt
doing some printk work would be a good startup..
I've started looking into kernel/*
haven't yet looked at arch/i386.
are you planning to take it up?

No in a really next future.

Quoted 4 lines

I'd like to know how do we,@ KJ, ensure that there is no repetition of work.. is the work delegated or voluntarily taken up throgh such discussions only? kindly let me know.

As we do now : we ask on this ml :)

Have a nice day,

- Christophe ([email protected])

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors

#4 lore raw
In reply to Milind A Choudhary(Patni)
Quoted 11 lines · Milind A Choudhary(Patni)

Description:
printk() calls should include appropriate KERN_* constant.

The patch
Index: linux-2.6.14-rc3/kernel/softirq.c
===================================================================

kernel/softirq.c EXPORT_SYMBOL(tasklet_init); · line 331

Quoted 5 lines
kernel/softirq.c +1 -1
@@ -328,7 +328,7 @@ EXPORT_SYMBOL(tasklet_init);
 void tasklet_kill(struct tasklet_struct *t)
 {
 	if (in_interrupt())
-		printk("Attempt to kill tasklet from interrupt\n");
+		printk(KERN_ERR "Attempt to kill tasklet from interrupt\n");

KERN_ERR is usually on the error path, which isn't the case here. As this is just a warning, KERN_WARNING would be more appropriate here, no?

kernel/softirq.c static int __devinit cpu_callback(struct · line 464

Quoted 12 lines
kernel/softirq.c +1 -1
 	while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) {
 		do
@@ -458,7 +458,7 @@ static int __devinit cpu_callback(struct
 		BUG_ON(per_cpu(tasklet_hi_vec, hotcpu).list);
 		p = kthread_create(ksoftirqd, hcpu, "ksoftirqd/%d", hotcpu);
 		if (IS_ERR(p)) {
-			printk("ksoftirqd for %i failed\n", hotcpu);
+			printk(KERN_ERR "ksoftirqd for %i failed\n", hotcpu);
 			return NOTIFY_BAD;
 		}
 		kthread_bind(p, hotcpu);

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors