vtxprintf.c File Reference

#include <stdarg.h>
#include <string.h>
#include <div64.h>

Include dependency graph for vtxprintf.c:

Go to the source code of this file.

Defines

#define isdigit(c)   ((c) >= '0' && (c) <= '9')
#define is_digit   isdigit
#define isxdigit(c)   (((c) >= '0' && (c) <= '9') || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
#define ZEROPAD   1
#define SIGN   2
#define PLUS   4
#define SPACE   8
#define LEFT   16
#define SPECIAL   32
#define LARGE   64

Functions

static int skip_atoi (const char **s)
static int number (void(*tx_byte)(unsigned char byte), unsigned long long num, int base, int size, int precision, int type)
int vtxprintf (void(*tx_byte)(unsigned char byte), const char *fmt, va_list args)


Define Documentation

#define is_digit   isdigit

Definition at line 13 of file vtxprintf.c.

Referenced by skip_atoi(), and vtxprintf().

#define isdigit ( c   )     ((c) >= '0' && (c) <= '9')

Definition at line 12 of file vtxprintf.c.

Referenced by simple_strtoull().

#define isxdigit ( c   )     (((c) >= '0' && (c) <= '9') || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))

Definition at line 14 of file vtxprintf.c.

Referenced by simple_strtoull().

#define LARGE   64

Definition at line 69 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define LEFT   16

Definition at line 67 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define PLUS   4

Definition at line 65 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define SIGN   2

Definition at line 64 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define SPACE   8

Definition at line 66 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define SPECIAL   32

Definition at line 68 of file vtxprintf.c.

Referenced by number(), and vtxprintf().

#define ZEROPAD   1

Definition at line 63 of file vtxprintf.c.

Referenced by number(), and vtxprintf().


Function Documentation

static int number ( void(*)(unsigned char byte)  tx_byte,
unsigned long long  num,
int  base,
int  size,
int  precision,
int  type 
) [static]

Definition at line 71 of file vtxprintf.c.

References c, do_div, LARGE, LEFT, PLUS, SIGN, SPACE, SPECIAL, console_driver::tx_byte, and ZEROPAD.

Referenced by int15_function32(), print_intel_core_msrs(), and vtxprintf().

Here is the caller graph for this function:

static int skip_atoi ( const char **  s  )  [static]

Definition at line 54 of file vtxprintf.c.

References is_digit.

Referenced by vtxprintf().

Here is the caller graph for this function:

int vtxprintf ( void(*)(unsigned char byte)  tx_byte,
const char *  fmt,
va_list  args 
)

Definition at line 140 of file vtxprintf.c.

References yapps2::flags, is_digit, LARGE, LEFT, len, number(), PLUS, SIGN, skip_atoi(), SPACE, SPECIAL, strnlen(), console_driver::tx_byte, and ZEROPAD.

Here is the call graph for this function:


Generated on Mon Dec 1 20:59:40 2008 for coreboot by  doxygen 1.5.5