mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
Redefine PDBG to use new log output function
PDBG is redefined in base/debug.h, an aide to development which is not to be included in release code. Fix #2125
This commit is contained in:
parent
dee56aeafa
commit
ef5f36bf4e
24
repos/base/include/base/debug.h
Normal file
24
repos/base/include/base/debug.h
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* \brief Debugging output function
|
||||
* \author Emery Hemingway
|
||||
* \date 2016-10-13
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDE__BASE__DEBUG_H_
|
||||
#define _INCLUDE__BASE__DEBUG_H_
|
||||
#ifndef GENODE_RELEASE
|
||||
|
||||
#include <base/log.h>
|
||||
|
||||
#define PDBG(...) \
|
||||
Genode::log("\033[33m", __PRETTY_FUNCTION__, "\033[0m ", ##__VA_ARGS__)
|
||||
|
||||
#endif /* GENODE_RELEASE */
|
||||
#endif /* _INCLUDE__BASE__DEBUG_H_ */
|
Loading…
x
Reference in New Issue
Block a user