: make prototype of printk available
PATCH 1/1 : make prototype of printk available
Hi
this complained about printk being undefined. Once there, put a tag to the printk.
Later, Juan.
Index: arch/mips/math-emu/ieee754xcpt.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/math-emu/ieee754xcpt.c,v retrieving revision 1.3.2.1
mips/math-emu/ieee754xcpt.c +2 -1
@@ -29,6 +29,7 @@* Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. *************************************************************************/ +#include <linux/kernel.h> #include "ieee754.h" /*
@@ -42,7 +43,7 @@void ieee754_xcpt (struct ieee754xctx *xcp) { -printk ("floating point exception in \"%s\", type=%s\n" , +printk (KERN_INFO "floating point exception in \"%s\", type=%s\n" , xcp->op, rtnames[xcp->rt]); }
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
Quoted 1 line · Juan Quintela
Once there, put a tag to the printk.
Why is the default log level incorrect here?
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +
Quoted 3 lines · Maciej W. Rozycki
Quoted 1 line
Once there, put a tag to the printk.
Why is the default log level incorrect here?
This is a printk that's executed if a user program is just trying to execute the right code, so a user could flood syslog that way. Imho the printk call should go away?
Ralf
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"maciej" == Maciej W Rozycki <[email protected]> writes:
Quoted 1 line · Juan Quintela
Quoted 1 line
Once there, put a tag to the printk.
maciej> Why is the default log level incorrect here?
The problem (not here in general), is that if printk's use the default log level, then you as a user has no way to raise/lower the default log level (i.e. the messages that you want to printk or not).
Later, Juan.
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
Quoted 3 lines · Ralf Baechle
This is a printk that's executed if a user program is just trying to execute the right code, so a user could flood syslog that way. Imho the printk call should go away?
Indeed -- that's a report of a non-fatal exception. If unhandled, user
will get output from the default signal handler. And if diagnostics is needed in the emulator, Dprintk or a similar solution may be used.
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +
Quoted 5 lines · Juan Quintela
maciej> Why is the default log level incorrect here?
The problem (not here in general), is that if printk's use the default log level, then you as a user has no way to raise/lower the default log level (i.e. the messages that you want to printk or not).
Well, the default level is KERN_WARNING and can be changed using sysctl.
Otherwise it's handled identically to explicitly tagged messages -- you may control direct console output with the same sysctl.
Obviously there are printks that beg for an explicit tag.
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +