]> git.hungrycats.org Git - linux/commitdiff
[ALPHA] Fix compressed bootp.
authorRichard Henderson <rth@kanga.twiddle.home>
Mon, 8 Mar 2004 05:23:07 +0000 (21:23 -0800)
committerRichard Henderson <rth@kanga.twiddle.home>
Mon, 8 Mar 2004 05:23:07 +0000 (21:23 -0800)
From Jay.Estabrook@hp.com.

The bootstrap decompressor uses some libraries built for the kernel,
which include lib/lib.a and thus vsprintf.o, whose "vsnprintf"
contains an unresolved reference to "printk".

This is caused by Linus' changes to "vsnprintf" which will now issue a
(printk) warning message under certain conditions.

arch/alpha/boot/misc.c

index d9db7c21b9309411ef5ec93888750625be7fe74b..0cdb531273b5cc0f8601e315b5dfe1ce840c814e 100644 (file)
@@ -205,3 +205,15 @@ decompress_kernel(void *output_start,
 /*     puts(" done, booting the kernel.\n"); */
        return output_ptr;
 }
+
+/* dummy-up printk */
+asmlinkage int printk(const char *fmt, ...)
+{
+        va_list args;
+       long ret;
+
+        va_start(args, fmt);
+        ret = srm_printk(fmt, args);
+        va_end(args);
+       return ret;
+}