print header to stdout

This commit is contained in:
Stanislav Shwartsman 2009-03-26 09:51:22 +00:00
parent c4eed92bb0
commit 38e77f0721

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: main.cc,v 1.397 2009-03-24 20:17:02 vruppert Exp $
// $Id: main.cc,v 1.398 2009-03-26 09:51:22 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -117,17 +117,17 @@ BOCHSAPI BX_MEM_C bx_mem;
char *bochsrc_filename = NULL;
void bx_print_header ()
void bx_print_header()
{
fprintf (stderr, "%s\n", divider);
printf("%s\n", divider);
char buffer[128];
sprintf (buffer, "Bochs x86 Emulator %s\n", VER_STRING);
bx_center_print (stderr, buffer, 72);
bx_center_print(stdout, buffer, 72);
if (REL_STRING[0]) {
sprintf (buffer, "%s\n", REL_STRING);
bx_center_print (stderr, buffer, 72);
sprintf(buffer, "%s\n", REL_STRING);
bx_center_print(stdout, buffer, 72);
}
fprintf (stderr, "%s\n", divider);
printf("%s\n", divider);
}
#if BX_WITH_CARBON