VBoxDbgLog.h revision 67bfa93839cac50828c90f19a00256bf44cc0f33
/* $Id$ */
/** @file
* 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 ___VBoxDbgLog_h__
#define ___VBoxDbgLog_h__
#ifndef VBOX_DBG_LOG_NAME
#endif
/*#define VBOX_DBG_LOG_SHOWLINEINFO*/
#ifdef VBOX_DBG_LOG_SHOWLINEINFO
# define VBOX_DBG_LOG_SUFFIX_FMT " (%s:%d)\n"
#else
# define VBOX_DBG_LOG_SUFFIX_FMT "\n"
# define VBOX_DBG_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)
do \
{ \
} while (0)
do \
{ \
BP_WARN(); \
} while (0)
if(!(_a)) { \
}\
} 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 /*___VBoxDbgLog_h__*/