TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros | Fonctions
Référence du fichier klog.h

Logging macros. Plus de détails...

#include <kstdio.h>
Graphe des dépendances par inclusion de klog.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Macros

#define klog(message,...)   do{klog_systime();kprintf("[%s] "message"\n", __FILE__, ##__VA_ARGS__);}while(0)
 
#define kerr(message,...)   do{kprintf("\033[031m");klog_systime();kprintf("\033[031m[%s:%d in %s] ERROR: "message"\033[0m\n", __FILE__, __LINE__, __func__, ##__VA_ARGS__);}while(0)
 
#define kdebug(message,...)
 

Fonctions

void klog_systime ()
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Documentation des macros

#define kdebug (   message,
  ... 
)

Macro pour les logs de debug qui ne fait rien si pas en mode debug.

#define kerr (   message,
  ... 
)    do{kprintf("\033[031m");klog_systime();kprintf("\033[031m[%s:%d in %s] ERROR: "message"\033[0m\n", __FILE__, __LINE__, __func__, ##__VA_ARGS__);}while(0)

Macro de log d'erreur.

#define klog (   message,
  ... 
)    do{klog_systime();kprintf("[%s] "message"\n", __FILE__, ##__VA_ARGS__);}while(0)

Macro de log système.