diff options
| author | Michael Brown | 2005-04-17 12:44:26 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-17 12:44:26 +0200 |
| commit | 664ffea69724e804811a10db5474e763d8f0b3eb (patch) | |
| tree | d124b17f926ec8ad4719d9b9539ed5e4ea568922 /src/include | |
| parent | Automatically drag in console.h if DBG() is being defined as printf(). (diff) | |
| download | ipxe-664ffea69724e804811a10db5474e763d8f0b3eb.tar.gz ipxe-664ffea69724e804811a10db5474e763d8f0b3eb.tar.xz ipxe-664ffea69724e804811a10db5474e763d8f0b3eb.zip | |
Gave vsprintf.c its own header file, and made console.h include it.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/console.h | 1 | ||||
| -rw-r--r-- | src/include/vsprintf.h | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/include/console.h b/src/include/console.h index ce2e53926..55ce73095 100644 --- a/src/include/console.h +++ b/src/include/console.h @@ -2,6 +2,7 @@ #define CONSOLE_H #include "stdint.h" +#include "vsprintf.h" /* * Consoles that cannot be used before their INIT_FN() has completed diff --git a/src/include/vsprintf.h b/src/include/vsprintf.h new file mode 100644 index 000000000..2bf200852 --- /dev/null +++ b/src/include/vsprintf.h @@ -0,0 +1,14 @@ +#ifndef VSPRINTF_H +#define VSPRINTF_H + +/* + * Note that we cannot use __attribute__ (( format ( printf, ... ) )) + * to get automatic type checking on arguments, because we use + * non-standard format characters such as "%!" and "%@". + * + */ + +extern int sprintf ( char *buf, const char *fmt, ... ); +extern void printf ( const char *fmt, ... ); + +#endif /* VSPRINTF_H */ |
