Skip to contentSkip to conversation

: do right includes in math-emu

PATCH New Juan Quintela 1 participant 1 message Dec 19, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : do right includes in math-emu

Hi
another trivial patch, include kernel.h for printk, and put a printk label.

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
diff -u -r1.3.2.1 ieee754xcpt.c
@@ -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_DEBUG "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