mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 21:06:44 +07:00
x86, boot: Changed error putstr path to match new debug_putstr format
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>
This commit is contained in:
parent
e605a42597
commit
cb454fe104
@ -270,9 +270,9 @@ void *memcpy(void *dest, const void *src, size_t n)
|
|||||||
|
|
||||||
static void error(char *x)
|
static void error(char *x)
|
||||||
{
|
{
|
||||||
__putstr(1, "\n\n");
|
error_putstr("\n\n");
|
||||||
__putstr(1, x);
|
error_putstr(x);
|
||||||
__putstr(1, "\n\n -- System halted");
|
error_putstr("\n\n -- System halted");
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
asm("hlt");
|
asm("hlt");
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
extern struct boot_params *real_mode; /* Pointer to real-mode data */
|
extern struct boot_params *real_mode; /* Pointer to real-mode data */
|
||||||
void __putstr(int error, const char *s);
|
void __putstr(int error, const char *s);
|
||||||
#define putstr(__x) __putstr(0, __x)
|
#define putstr(__x) __putstr(0, __x)
|
||||||
|
#define error_putstr(__x) __putstr(1, __x)
|
||||||
#define puts(__x) __putstr(0, __x)
|
#define puts(__x) __putstr(0, __x)
|
||||||
|
|
||||||
/* cmdline.c */
|
/* cmdline.c */
|
||||||
|
Loading…
Reference in New Issue
Block a user