10#include <manux/config.h>
12#include <manux/stddef.h>
21#define MAX_PRINTK_LENGTH 2048
26#define PRINTK_PANIQUE "{0}"
27#define PRINTK_URGENCE "{1}"
28#define PRINTK_CRITIQUE "{2}"
29#define PRINTK_ERREUR "{3}"
30#define PRINTK_ATTENTION "{4}"
31#define PRINTK_NOTIFICATION "{5}"
32#define PRINTK_INFORMATION "{6}"
33#define PRINTK_DEBUGAGE "{7}"
47void printk(
char * format, ...);
55#ifdef MANUX_CONSOLES_VIRTUELLES
56void printkc(
char * format, ...);
61# define printkc printk
80int snprintk(
char *
str,
size_t l,
char * format, ...);
83#define fprintk(f, format, ...) \
85 char chaine[MAX_PRINTK_LENGTH]; \
86 fichierEcrire(f, chaine, snprintk(chaine, MAX_PRINTK_LENGTH, format, __VA_ARGS__)); \
void printk(char *format,...)
Fonction principale d'affichage dans le noyau.
#define printkc
Une version de printk qui écrit dans la console de la tâche en cours.
int snprintk(char *str, size_t l, char *format,...)
: Écriture formattée dans une chaîne de caractères
int vsprintk(char *str, char *format, va_list argList)
: Écriture formattée dans une chaîne de caractères
int sprintk(char *str, char *format,...)
: Écriture formattée dans une chaîne de caractères
__builtin_va_list va_list