LumaOS  v0.1.116
An experimental x86-64 OS
Loading...
Searching...
No Matches
kprintf.h
Go to the documentation of this file.
1
9#ifndef KERNEL_KERNEL_KPRINTF_H
10#define KERNEL_KERNEL_KPRINTF_H
11
12#include <drivers/console.h>
13#include <drivers/serial.h>
14#include <arch/x86_64/io.h>
15#include <lib/kstring.h>
16#include <stdarg.h>
17#include <stdint.h>
18#include <stdbool.h>
19
25void kprintf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
26
32void kvprintf(const char *fmt, va_list ap);
33
38void kputc(char c);
39
47void print_unsigned(unsigned long long value, uint8_t base, bool uppercase, uint8_t _length);
48
54void print_signed(long long value, uint8_t len);
55
56#endif
Console utilities and configuration.
Provides utilities for IO operations with the hardware.
void kputc(char c)
Sends characters to print in the console and serial.
Definition kprintf.c:410
void kprintf(const char *fmt,...) __attribute__((format(printf
Wrapper for a standard print.
void print_signed(long long value, uint8_t len)
Prepares a signed number to be printed through the unsigned print.
Definition kprintf.c:466
void void kvprintf(const char *fmt, va_list ap)
Handles printing a formatted string.
Definition kprintf.c:28
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.
Definition kprintf.c:415
Utilities for memory and string operations.
Serial utilities and configuration.