VBoxVideoLog.h revision 67b8a5a52c43a79ea7e159dbbeec99687fb9cd3b
/* $Id$ */
/** @file
* VBox Video drivers, logging helper
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef VBOXVIDEOLOG_H
#define VBOXVIDEOLOG_H
#ifndef VBOX_VIDEO_LOG_NAME
#endif
#ifndef VBOX_VIDEO_LOG_LOGGER
# define VBOX_VIDEO_LOG_LOGGER Log
#endif
#ifndef VBOX_VIDEO_LOGREL_LOGGER
# define VBOX_VIDEO_LOGREL_LOGGER LogRel
#endif
#ifndef VBOX_VIDEO_LOGFLOW_LOGGER
# define VBOX_VIDEO_LOGFLOW_LOGGER LogFlow
#endif
#ifndef VBOX_VIDEO_LOG_FN_FMT
# define VBOX_VIDEO_LOG_FN_FMT LOG_FN_FMT
#endif
#ifndef VBOX_VIDEO_LOG_FORMATTER
do \
{ \
} while (0)
#endif
/*#define VBOX_VIDEO_LOG_SHOWLINEINFO*/
#ifdef VBOX_VIDEO_LOG_SHOWLINEINFO
# define VBOX_VIDEO_LOG_SUFFIX_FMT " (%s:%d)\n"
#else
# define VBOX_VIDEO_LOG_SUFFIX_FMT "\n"
# define VBOX_VIDEO_LOG_SUFFIX_PARMS
#endif
#ifdef DEBUG_misha
# define BP_WARN() AssertFailed()
#else
# define BP_WARN() do {} while(0)
#endif
do \
{ \
} while (0)
do \
{ \
} while (0)
/* we can not print paged strings to RT logger, do it this way */
int _i = 0; \
}\
_logger(("\n")); \
} while (0)
#ifdef VBOX_WDDM_MINIPORT
# define _WARN_LOGGER VBOX_VIDEO_LOGREL_LOGGER
#else
# define _WARN_LOGGER VBOX_VIDEO_LOG_LOGGER
#endif
do \
{ \
BP_WARN(); \
} while (0)
if(!(_a)) { \
}\
} while (0)
#define STOP_FATAL() do { \
AssertReleaseFailed(); \
} while (0)
STOP_FATAL(); \
} while (0)
/* we can not print paged strings to RT logger, do it this way */
} while (0)
} while (0)
#define LOGREL_STRA(_a) do {\
} while (0)
#define LOGREL_STRW(_a) do {\
} while (0)
#endif /*VBOXVIDEOLOG_H*/