#include <debug.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Defines | |
#define | STDIN_FILENO 0 |
#define | STDOUT_FILENO 1 |
#define | sprintf dont_use_sprintf_use_snprintf |
#define | vsprintf dont_use_vsprintf_use_vsnprintf |
Functions | |
int | printf (const char *,...) PRINTF_FORMAT(1 |
int int | snprintf (char *, size_t, const char *,...) PRINTF_FORMAT(3 |
int int int | vprintf (const char *, va_list) PRINTF_FORMAT(1 |
int int int int | vsnprintf (char *, size_t, const char *, va_list) PRINTF_FORMAT(3 |
int int int int int | putchar (int) |
int | puts (const char *) |
void | hex_dump (uintptr_t ofs, const void *, size_t size, bool ascii) |
void | print_human_readable_size (uint64_t sz) |
void | __vprintf (const char *format, va_list args, void(*output)(char, void *), void *aux) |
void | __printf (const char *format, void(*output)(char, void *), void *aux,...) |
#define STDIN_FILENO 0 |
#define STDOUT_FILENO 1 |
void __printf | ( | const char * | format, | |
void(*)(char, void *) | output, | |||
void * | aux, | |||
... | ||||
) |
Definition at line 578 of file stdio.c.
References __vprintf(), va_end, and va_start.
Referenced by __vprintf().
void __vprintf | ( | const char * | format, | |
va_list | args, | |||
void(*)(char, void *) | output, | |||
void * | aux | |||
) |
Definition at line 158 of file stdio.c.
References __printf(), printf_conversion::CHAR, printf_conversion::flags, format_integer(), format_string(), printf_conversion::INT, printf_conversion::INTMAX, printf_conversion::LONG, printf_conversion::LONGLONG, NOT_REACHED, NULL, parse_conversion(), printf_conversion::precision, PTRDIFF_MAX, printf_conversion::PTRDIFFT, s, printf_conversion::SHORT, SIZE_MAX, printf_conversion::SIZET, strnlen(), printf_conversion::type, and va_arg.
Referenced by __printf(), vhprintf(), vprintf(), and vsnprintf().
Definition at line 594 of file stdio.c.
References buf, isprint(), printf(), ROUND_DOWN, and start.
Referenced by bitmap_dump(), compare_bytes(), fsutil_cat(), main(), uhci_tx_pkt_wait(), and usb_load_config().
void print_human_readable_size | ( | uint64_t | sz | ) |
Definition at line 643 of file stdio.c.
References NULL, printf(), and PRIu64.
Referenced by block_register(), and identify_ata_device().
int printf | ( | const char * | , | |
... | ||||
) |
int int int int int putchar | ( | int | ) |
Definition at line 163 of file console.c.
References acquire_console(), putchar_have_lock(), release_console(), STDOUT_FILENO, and write().
Referenced by fail(), msg(), puts(), and read_line().
int puts | ( | const char * | ) |
Definition at line 140 of file console.c.
References acquire_console(), putchar(), putchar_have_lock(), release_console(), STDOUT_FILENO, strlen(), and write().
int int snprintf | ( | char * | , | |
size_t | , | |||
const char * | , | |||
... | ||||
) |
int int int vprintf | ( | const char * | , | |
va_list | ||||
) |