xmon_printf(KERN_ERR "Badness in %s at %s:%d\n", 
xmon_printf(KERN_ERR "Badness in %s at %s:%ld\n", 
int check_bug_trap(struct pt_regs *regs){	struct bug_entry *bug;	unsigned long addr;	if (regs->msr & MSR_PR)		return 0;	/* not in kernel */	addr = regs->nip;	/* address of trap instruction */	if (addr < PAGE_OFFSET)		return 0;	bug = find_bug(regs->nip);	if (bug == NULL)		return 0;	if (bug->line & BUG_WARNING_TRAP) {		/* this is a WARN_ON rather than BUG/BUG_ON */#ifdef CONFIG_XMON		xmon_printf(KERN_ERR "Badness in %s at %s:%d\n",		       bug->function, bug->file,		       bug->line & ~BUG_WARNING_TRAP);#endif /* CONFIG_XMON */				printk(KERN_ERR "Badness in %s at %s:%d\n",		       bug->function, bug->file,		       bug->line & ~BUG_WARNING_TRAP);		dump_stack();		return 1;	}#ifdef CONFIG_XMON	xmon_printf(KERN_CRIT "kernel BUG in %s at %s:%d!\n",	       bug->function, bug->file, bug->line);	xmon(regs);#endif /* CONFIG_XMON */	printk(KERN_CRIT "kernel BUG in %s at %s:%d!\n",	       bug->function, bug->file, bug->line);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/9122ee33c6688491c65dcb1973e86b943883a8ab/traps.c/buggy/arch/ppc/kernel/traps.c