diff options
author | RajithaY <rajithax.yerrumsetty@intel.com> | 2017-04-25 03:31:15 -0700 |
---|---|---|
committer | Rajitha Yerrumchetty <rajithax.yerrumsetty@intel.com> | 2017-05-22 06:48:08 +0000 |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/ipxe/src/include/syslog.h | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to
kvmfornfv repo and make use of the updated latest qemu for the
execution of all testcase
Change-Id: I1280af507a857675c7f81d30c95255635667bdd7
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/ipxe/src/include/syslog.h')
-rw-r--r-- | qemu/roms/ipxe/src/include/syslog.h | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/qemu/roms/ipxe/src/include/syslog.h b/qemu/roms/ipxe/src/include/syslog.h deleted file mode 100644 index 748a4faec..000000000 --- a/qemu/roms/ipxe/src/include/syslog.h +++ /dev/null @@ -1,100 +0,0 @@ -#ifndef _SYSLOG_H -#define _SYSLOG_H - -/** @file - * - * System logger - * - */ - -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); - -#include <stdarg.h> -#include <ipxe/ansiesc.h> -#include <config/console.h> - -/** - * @defgroup syslogpri Syslog priorities - * - * These values are chosen to match those used in the syslog network - * protocol (RFC 5424). - * - * @{ - */ - -/** Emergency: system is unusable */ -#define LOG_EMERG 0 - -/** Alert: action must be taken immediately */ -#define LOG_ALERT 1 - -/** Critical: critical conditions */ -#define LOG_CRIT 2 - -/** Error: error conditions */ -#define LOG_ERR 3 - -/** Warning: warning conditions */ -#define LOG_WARNING 4 - -/** Notice: normal but significant conditions */ -#define LOG_NOTICE 5 - -/** Informational: informational messages */ -#define LOG_INFO 6 - -/** Debug: debug-level messages */ -#define LOG_DEBUG 7 - -/** @} */ - -/** Do not log any messages */ -#define LOG_NONE -1 - -/** Log all messages */ -#define LOG_ALL LOG_DEBUG - -extern void log_vprintf ( const char *fmt, va_list args ); - -extern void __attribute__ (( format ( printf, 1, 2 ) )) -log_printf ( const char *fmt, ... ); - -/** ANSI private escape sequence to set syslog priority - * - * @v priority Priority - */ -#define SYSLOG_SET_PRIORITY( priority ) \ - "\033[" #priority "p" - -/** ANSI private escape sequence to clear syslog priority */ -#define SYSLOG_CLEAR_PRIORITY "\033[p" - -/** - * Write message to system log - * - * @v priority Message priority - * @v fmt Format string - * @v ... Arguments - */ -#define vsyslog( priority, fmt, args ) do { \ - if ( (priority) <= LOG_LEVEL ) { \ - log_vprintf ( SYSLOG_SET_PRIORITY ( priority ) fmt \ - SYSLOG_CLEAR_PRIORITY, (args) ); \ - } \ - } while ( 0 ) - -/** - * Write message to system log - * - * @v priority Message priority - * @v fmt Format string - * @v ... Arguments - */ -#define syslog( priority, fmt, ... ) do { \ - if ( (priority) <= LOG_LEVEL ) { \ - log_printf ( SYSLOG_SET_PRIORITY ( priority ) fmt \ - SYSLOG_CLEAR_PRIORITY, ##__VA_ARGS__ ); \ - } \ - } while ( 0 ) - -#endif /* _SYSLOG_H */ |