Skip to contentSkip to conversation

about vga_endboot logic

DISCUSSION 余上 2 participants 2 messages Jan 19, 2008 – Jan 21, 2008

lore
Share & tools
lore

余上

author
#0 lore raw

Hi all ,

I think the logic of vga_endboot is not correct , if I pass vga=keep xen will print :
Xen is keeping VGA console.
but if I do not pass keep parmeter xen will not print :
Xen is relinquishing VGA console.

The new logic should be:

void vga_endboot(void)
{
if ( !vgacon_enabled )
return;

printk("Xen is %s VGA console.\n",
vgacon_keep ? "keeping" : "relinquishing");

if ( !vgacon_keep )
vgacon_enabled = 0;

}
just move printk before the second if statement

#1 lore raw

This is already correct in all active branches (3.1, 3.2, 3.3).

-- Keir

Quoted 28 lines · 余上

Hi all ,

I think the logic of vga_endboot is not correct , if I pass vga=keep xen will print :
Xen is keeping VGA console.
but if I do not pass keep parmeter xen will not print :
Xen is relinquishing VGA console.

The new logic should be:

void vga_endboot(void)
{
if ( !vgacon_enabled )
return;

printk("Xen is %s VGA console.\n",
vgacon_keep ? "keeping" : "relinquishing");

if ( !vgacon_keep )
vgacon_enabled = 0;

}
just move printk before the second if statement

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel