2 * Written by Cort Dougan to replace the version written by
3 * Paul Mackerras that had copyright conflicts with Linux.
5 * This file makes liberal use of the standard linux utility
6 * routines to reduce the size of the binary. We assume we can
7 * trust some parts of Linux inside the debugger.
8 * -- Cort (cort@cs.nmt.edu)
10 * Copyright (C) 1999 Cort Dougan.
13 #include <linux/kernel.h>
14 #include <linux/string.h>
18 extern int xmon_write(void *, void *, int);
21 xmon_vfprintf(void *f
, const char *fmt
, va_list ap
)
24 vsprintf( buf
, fmt
, ap
);
25 xmon_write( f
, buf
, strlen(buf
) );
29 xmon_printf(const char *fmt
, ...)
34 xmon_vfprintf(stdout
, fmt
, ap
);
39 xmon_fprintf(void *f
, const char *fmt
, ...)
44 xmon_vfprintf(f
, fmt
, ap
);