The idea is just to have one function. Whichever prints theI did a simple test, a serial cable was connected, and console=hvc0 was added in grub.conf.
string and panics the machine. If 'panic' does this properly
(and properly meaning it actually prints data when using
the earlyprintk=xen as well as console=hvc0) printout system
the we cuold just use 'panic' and not worry about it.
But if it does not, then we (and by we I mean you) should
provide a variant of panic() that prints the data properly using the
earlprintk mechanism. Preferrabily to make it generic.