Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
printf.c File Reference
#include "boot.h"

Go to the source code of this file.

Macros

#define ZEROPAD   1 /* pad with zero */
 
#define SIGN   2 /* unsigned/signed long */
 
#define PLUS   4 /* show plus */
 
#define SPACE   8 /* space if plus */
 
#define LEFT   16 /* left justified */
 
#define SMALL   32 /* Must be 32 == 0x20 */
 
#define SPECIAL   64 /* 0x */
 
#define __do_div(n, base)
 

Functions

int vsprintf (char *buf, const char *fmt, va_list args)
 
int sprintf (char *buf, const char *fmt,...)
 
int printf (const char *fmt,...)
 

Macro Definition Documentation

#define __do_div (   n,
  base 
)
Value:
({ \
int __res; \
__res = ((unsigned long) n) % (unsigned) base; \
n = ((unsigned long) n) / (unsigned) base; \
__res; })

Definition at line 37 of file printf.c.

#define LEFT   16 /* left justified */

Definition at line 33 of file printf.c.

#define PLUS   4 /* show plus */

Definition at line 31 of file printf.c.

#define SIGN   2 /* unsigned/signed long */

Definition at line 30 of file printf.c.

#define SMALL   32 /* Must be 32 == 0x20 */

Definition at line 34 of file printf.c.

#define SPACE   8 /* space if plus */

Definition at line 32 of file printf.c.

#define SPECIAL   64 /* 0x */

Definition at line 35 of file printf.c.

#define ZEROPAD   1 /* pad with zero */

Definition at line 29 of file printf.c.

Function Documentation

int printf ( const char fmt,
  ... 
)

Definition at line 296 of file printf.c.

int sprintf ( char buf,
const char fmt,
  ... 
)

Definition at line 285 of file printf.c.

int vsprintf ( char buf,
const char fmt,
va_list  args 
)

Definition at line 115 of file printf.c.