* [patch 1/1] printk : arch/ia64/kernel/smp.c
@ 2005-03-19 13:19 domen
2005-03-22 21:52 ` Luck, Tony
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: domen @ 2005-03-19 13:19 UTC (permalink / raw)
To: linux-ia64
printk() calls should include appropriate KERN_* constant.
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/arch/ia64/kernel/smp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN arch/ia64/kernel/smp.c~printk-arch_ia64_kernel_smp arch/ia64/kernel/smp.c
--- kj/arch/ia64/kernel/smp.c~printk-arch_ia64_kernel_smp 2005-03-18 20:05:41.000000000 +0100
+++ kj-domen/arch/ia64/kernel/smp.c 2005-03-18 20:05:41.000000000 +0100
@@ -269,7 +269,7 @@ smp_call_function_single (int cpuid, voi
int me = get_cpu(); /* prevent preemption and reschedule on another processor */
if (cpuid = me) {
- printk("%s: trying to call self\n", __FUNCTION__);
+ printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__);
put_cpu();
return -EBUSY;
}
_
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [patch 1/1] printk : arch/ia64/kernel/smp.c
2005-03-19 13:19 [patch 1/1] printk : arch/ia64/kernel/smp.c domen
@ 2005-03-22 21:52 ` Luck, Tony
2005-03-23 10:02 ` Christophe Lucas
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2005-03-22 21:52 UTC (permalink / raw)
To: linux-ia64
> if (cpuid = me) {
>- printk("%s: trying to call self\n", __FUNCTION__);
>+ printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__);
> put_cpu();
> return -EBUSY;
> }
I think this is a bit higher priority than KERN_INFO. If we
get here, then someone did something wrong at a higher level,
and they may be disapponited that the function they want called
isn't going to be called.
Perhaps KERN_WARNING would be more appropriate?
It might also be kind to anyone trying to debug this to print
the "func" argument.
-Tony
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 1/1] printk : arch/ia64/kernel/smp.c
2005-03-19 13:19 [patch 1/1] printk : arch/ia64/kernel/smp.c domen
2005-03-22 21:52 ` Luck, Tony
@ 2005-03-23 10:02 ` Christophe Lucas
2005-03-23 11:31 ` Domen Puncer
2005-06-20 21:49 ` domen
3 siblings, 0 replies; 5+ messages in thread
From: Christophe Lucas @ 2005-03-23 10:02 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
Luck, Tony (tony.luck@intel.com) wrote:
> > if (cpuid == me) {
> >- printk("%s: trying to call self\n", __FUNCTION__);
> >+ printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__);
> > put_cpu();
> > return -EBUSY;
> > }
>
> I think this is a bit higher priority than KERN_INFO. If we
> get here, then someone did something wrong at a higher level,
> and they may be disapponited that the function they want called
> isn't going to be called.
>
> Perhaps KERN_WARNING would be more appropriate?
>
> It might also be kind to anyone trying to debug this to print
> the "func" argument.
>
> -Tony
>
Perhaps this could do the job:
[-- Attachment #2: patch-linux-2.6.12-rc1_arch_ia64_kernel_smp.c.diff --]
[-- Type: text/plain, Size: 548 bytes --]
diff -uprN -X dontdiff a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c
--- a/arch/ia64/kernel/smp.c 2005-03-18 02:34:36.000000000 +0100
+++ b/arch/ia64/kernel/smp.c 2005-03-23 10:35:18.000000000 +0100
@@ -269,7 +269,7 @@ smp_call_function_single (int cpuid, voi
int me = get_cpu(); /* prevent preemption and reschedule on another processor */
if (cpuid == me) {
- printk("%s: trying to call self\n", __FUNCTION__);
+ printk(KERN_WARNING "%s: trying to call self with info:%08x\n", __FUNCTION__, info);
put_cpu();
return -EBUSY;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 1/1] printk : arch/ia64/kernel/smp.c
2005-03-19 13:19 [patch 1/1] printk : arch/ia64/kernel/smp.c domen
2005-03-22 21:52 ` Luck, Tony
2005-03-23 10:02 ` Christophe Lucas
@ 2005-03-23 11:31 ` Domen Puncer
2005-06-20 21:49 ` domen
3 siblings, 0 replies; 5+ messages in thread
From: Domen Puncer @ 2005-03-23 11:31 UTC (permalink / raw)
To: linux-ia64
On 23/03/05 11:02 +0100, Christophe Lucas wrote:
> if (cpuid = me) {
> - printk("%s: trying to call self\n", __FUNCTION__);
> + printk(KERN_WARNING "%s: trying to call self with info:%08x\n", __FUNCTION__, info);
Hmm... %p is supposed to be used for pointers, right?
Domen
^ permalink raw reply [flat|nested] 5+ messages in thread
* [patch 1/1] printk : arch/ia64/kernel/smp.c
2005-03-19 13:19 [patch 1/1] printk : arch/ia64/kernel/smp.c domen
` (2 preceding siblings ...)
2005-03-23 11:31 ` Domen Puncer
@ 2005-06-20 21:49 ` domen
3 siblings, 0 replies; 5+ messages in thread
From: domen @ 2005-06-20 21:49 UTC (permalink / raw)
To: linux-ia64
From: Christophe Lucas <clucas@rotomalug.org>
printk() calls should include appropriate KERN_* constant.
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
smp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: quilt/arch/ia64/kernel/smp.c
=================================--- quilt.orig/arch/ia64/kernel/smp.c
+++ quilt/arch/ia64/kernel/smp.c
@@ -269,7 +269,7 @@ smp_call_function_single (int cpuid, voi
int me = get_cpu(); /* prevent preemption and reschedule on another processor */
if (cpuid = me) {
- printk("%s: trying to call self\n", __FUNCTION__);
+ printk(KERN_INFO "%s: trying to call self\n", __FUNCTION__);
put_cpu();
return -EBUSY;
}
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-20 21:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19 13:19 [patch 1/1] printk : arch/ia64/kernel/smp.c domen
2005-03-22 21:52 ` Luck, Tony
2005-03-23 10:02 ` Christophe Lucas
2005-03-23 11:31 ` Domen Puncer
2005-06-20 21:49 ` domen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox