]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
x86, boot: Changed error putstr path to match new debug_putstr format
authorJoe Millenbach <jmillenbach@gmail.com>
Fri, 20 Jul 2012 01:04:38 +0000 (18:04 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 21 Jul 2012 18:07:22 +0000 (11:07 -0700)
For consistency we changed the error output path to match the new debug path.

Signed-off-by: Joe Millenbach <jmillenbach@gmail.com>
Link: http://lkml.kernel.org/r/1342746282-28497-4-git-send-email-jmillenbach@gmail.com
Signed-off-by: Gokul Caushik <caushik1@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/compressed/misc.c
arch/x86/boot/compressed/misc.h

index 49c6d5632ef7d17a5b5fb4dbff174f54fefbc6ec..de1d54d8bddca639f004ffb458fcc4bb045371ac 100644 (file)
@@ -270,9 +270,9 @@ void *memcpy(void *dest, const void *src, size_t n)
 
 static void error(char *x)
 {
-       __putstr(1, "\n\n");
-       __putstr(1, x);
-       __putstr(1, "\n\n -- System halted");
+       error_putstr("\n\n");
+       error_putstr(x);
+       error_putstr("\n\n -- System halted");
 
        while (1)
                asm("hlt");
index 3f19c81a62036c414c29f05807fc9d3bfaa5390a..4c1bfb69e0d8dbc2c580339bbb354acabcef7e49 100644 (file)
@@ -26,6 +26,7 @@
 extern struct boot_params *real_mode;          /* Pointer to real-mode data */
 void __putstr(int error, const char *s);
 #define putstr(__x)  __putstr(0, __x)
+#define error_putstr(__x)  __putstr(1, __x)
 #define puts(__x)  __putstr(0, __x)
 
 /* cmdline.c */