|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Tools for printing to the console and serial output. More...
#include <drivers/console.h>#include <drivers/serial.h>#include <arch/x86_64/io.h>#include <lib/kstring.h>#include <stdarg.h>#include <stdint.h>#include <stdbool.h>Go to the source code of this file.
Functions | |
| void | kprintf (const char *fmt,...) __attribute__((format(printf |
| Wrapper for a standard print. | |
| void void | kvprintf (const char *fmt, va_list ap) |
| Handles printing a formatted string. | |
| void | kputc (char c) |
| Sends characters to print in the console and serial. | |
| void | print_unsigned (unsigned long long value, uint8_t base, bool uppercase, uint8_t _length) |
| Prints unsigned integers of any base lower than base 36. | |
| void | print_signed (long long value, uint8_t len) |
| Prepares a signed number to be printed through the unsigned print. | |
Tools for printing to the console and serial output.
Definition in file kprintf.h.
| void kprintf | ( | const char * | fmt, |
| ... ) |
Wrapper for a standard print.
| fmt | The string with format characters |
| ... | The arguments for the format string |
| void kputc | ( | char | c | ) |
| void void kvprintf | ( | const char * | fmt, |
| va_list | ap ) |
| void print_signed | ( | long long | value, |
| uint8_t | len ) |
Prepares a signed number to be printed through the unsigned print.
| value | The integer to print |
| len | The minimum length for the printed integer (see print_unsigned()) |
Definition at line 466 of file kprintf.c.
| void print_unsigned | ( | unsigned long long | value, |
| uint8_t | base, | ||
| bool | uppercase, | ||
| uint8_t | _length ) |
Prints unsigned integers of any base lower than base 36.
| value | The int to print |
| base | The base to print in (base 10 (0-9), base 16 (0-9 + a-f), base 2 (0 & 1), etc..) |
| uppercase | Should it use the uppercase letters for base 11+ |
| _length | The minimum length for digits (123 with _length=5 will print as "00123") |
Definition at line 415 of file kprintf.c.