Remove misleading "Not supported yet" message from amd64 boot

Akad Arpad Padak <[email protected]>
Newsgroups gmane.os.openbsd.tech
Message-ID <MI1P293MB0396032996BD465494F5A582D9EE2@MI1P293MB0396.ITAP293.PROD.OUTLOOK.COM>
Hello,

In sys/arch/amd64/stand/libsa/cmd_i386.c, Xboot() prints
"Not supported yet" unconditionally, while still performing a
successful chainload via bootbuf().

Tested on bare metal and a VirtualBox MBR/BIOS VM. In both cases
the behavior is identical.

Before patch:
boot> machine boot hd0a
Not supported yet
booting...

After patch:
boot> machine boot hd0a
booting...

No functional change.

Patch is attached.

Regards,
patch.diff (application/octet-stream, 400 B)
diff --git a/sys/arch/amd64/stand/libsa/cmd_i386.c b/sys/arch/amd64/stand/libsa/cmd_i386.c
index 0ee588d2c48..2e69a5ffc24 100644
--- a/sys/arch/amd64/stand/libsa/cmd_i386.c
+++ b/sys/arch/amd64/stand/libsa/cmd_i386.c
@@ -78,7 +78,6 @@ Xregs(void)
 int
 Xboot(void)
 {
-	printf("Not supported yet\n");
 	int dev, part, st;
 	struct diskinfo *dip;
 	char buf[DEV_BSIZE], *dest = (void *)BOOTBIOS_ADDR;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.