mirror of
https://github.com/ipxe/ipxe
synced 2026-06-29 00:07:28 +03:00
[linux] Fix console output on big-endian targets
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -43,8 +43,10 @@ FILE_LICENCE(GPL2_OR_LATER);
|
|||||||
|
|
||||||
static void linux_console_putchar(int c)
|
static void linux_console_putchar(int c)
|
||||||
{
|
{
|
||||||
|
char ch = c;
|
||||||
|
|
||||||
/* write to stdout */
|
/* write to stdout */
|
||||||
if (linux_write(1, &c, 1) != 1)
|
if (linux_write(1, &ch, sizeof (ch)) != 1)
|
||||||
DBG("linux_console write failed (%s)\n", linux_strerror(linux_errno));
|
DBG("linux_console write failed (%s)\n", linux_strerror(linux_errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user