/*
** This is a replacement for the amiga.lib kprintf for PowerPC.
** It uses the WarpUp SPrintF function to do debug output
** to the serial connector (or Sushi, if it's installed).
*/

#include <proto/exec.h>
#include <powerpc/powerpc_protos.h>
#include <stdarg.h>

int kprintf(char *format, ...)
{

	char msg[1024];
	va_list marker;

	va_start(marker, format);
	vsprintf(msg, format, marker);
	va_end(marker);

	SPrintF(msg, 0);

	return 1;   /* fake something... */
}
