My Project
Chargement...
Recherche...
Aucune correspondance
printk.h
Aller à la documentation de ce fichier.
1
7#ifndef STD_IO_DEF
8#define STD_IO_DEF
9
10#include <manux/config.h>
11#include <manux/stdarg.h>
12#include <manux/stddef.h> // size_t
13#ifdef MANUX_FICHIER
14#include <manux/fichier.h>
15#endif
16
21#define MAX_PRINTK_LENGTH 2048 //512
22
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}"
34
47void printk(char * format, ...);
48
55#ifdef MANUX_CONSOLES_VIRTUELLES
56void printkc(char * format, ...);
57
58// Si on n'a pas de console virtuelle, printkc ne peut pas faire mieux
59// que printk
60#else
61# define printkc printk
62#endif
63
67int sprintk(char * str, char * format, ...);
68
72int vsprintk(char * str, char * format, va_list argList);
73
80int snprintk(char * str, size_t l, char * format, ...);
81
82#ifdef MANUX_FICHIER
83#define fprintk(f, format, ...) \
84 { \
85 char chaine[MAX_PRINTK_LENGTH]; \
86 fichierEcrire(f, chaine, snprintk(chaine, MAX_PRINTK_LENGTH, format, __VA_ARGS__)); \
87}
88#endif // MANUX_FICHIER
89#endif
#define str(tr)
Definition i386.h:19
void printk(char *format,...)
Fonction principale d'affichage dans le noyau.
Definition printk.c:166
#define printkc
Une version de printk qui écrit dans la console de la tâche en cours.
Definition printk.h:61
int snprintk(char *str, size_t l, char *format,...)
: Écriture formattée dans une chaîne de caractères
Definition printk.c:148
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
Definition stdarg.h:4