===== arch/ia64/sn/kernel/mca.c 1.9 vs edited ===== --- 1.9/arch/ia64/sn/kernel/mca.c Wed Feb 4 16:48:21 2004 +++ edited/arch/ia64/sn/kernel/mca.c Thu Feb 12 15:56:55 2004 @@ -30,44 +30,6 @@ struct timer_list sn_cpei_timer; void sn_init_cpei_timer(void); - -/* - * print_hook - * - * This function is the callback routine that SAL calls to log error - * info for platform errors. - */ -static int -print_hook(const char *fmt, ...) -{ - static int newline=1; - char buf[400], *p; - va_list args; - int len=0; - - - va_start(args, fmt); - if (newline) { - strcpy(buf, "+ "); - len += 2; - } - len += vsnprintf(buf+len, sizeof(buf)-len, fmt, args); - - /* Prefix each line with "+ " to be consistent with mca.c. */ - p = buf; - while ((p=strchr(p, '\n')) && *++p != '\0') { - memmove(p+2, p, 1+strlen(p)); - strncpy(p, "+ ", 2); - len += 2; - } - newline = (p != 0); - - va_end(args); - printk("%s", buf); - return len; -} - - static void sn_cpei_handler(int irq, void *devid, struct pt_regs *regs) {