Skip to content

Commit

Permalink
kvm: Flush stdout for early printk
Browse files Browse the repository at this point in the history
Make sure we flush stdout for early printk so that we can see what's really
going on when a kernel gets stuck.

Signed-off-by: Pekka Enberg <[email protected]>
  • Loading branch information
Pekka Enberg authored and wildea01 committed Jun 1, 2015
1 parent 0290405 commit d7c0e6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 15,8 @@ static bool early_serial_txr_out(struct kvm *self, uint16_t port, void *data, in
{
char *p = data;

printf("%c", *p);
fprintf(stderr, "%c", *p);
fflush(stderr);

return true;
}
Expand Down

0 comments on commit d7c0e6c

Please sign in to comment.