use the -newos toolchain even if -elf is present.
[newos.git] / boot / m68k / stage2_text.c
blobce517e23db4f6b6f2b7432786c3a6c870a493a97
1 /*
2 ** Copyright 2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #include "stage2_priv.h"
7 #include <string.h>
8 #include <stdarg.h>
9 #include <stdio.h>
11 void puts(const char *str)
13 while (*str)
14 putc(*str++);
17 int dprintf(const char *fmt, ...)
19 int ret;
20 va_list args;
21 char temp[256];
23 va_start(args, fmt);
24 ret = vsprintf(temp,fmt,args);
25 va_end(args);
27 puts(temp);
28 return ret;