mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 03:40:15 +00:00
parent
661a3100b1
commit
78a9cbf82d
@ -66,6 +66,7 @@ struct Genode::Trace::Logger
|
|||||||
* Log event to trace buffer
|
* Log event to trace buffer
|
||||||
*/
|
*/
|
||||||
template <typename EVENT>
|
template <typename EVENT>
|
||||||
|
__attribute__((optimize("-fno-delete-null-pointer-checks")))
|
||||||
void log(EVENT const *event)
|
void log(EVENT const *event)
|
||||||
{
|
{
|
||||||
if (!this || !_evaluate_control()) return;
|
if (!this || !_evaluate_control()) return;
|
||||||
|
@ -122,6 +122,7 @@ bool Trace::Logger::_evaluate_control()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
__attribute__((optimize("-fno-delete-null-pointer-checks")))
|
||||||
void Trace::Logger::log(char const *msg, size_t len)
|
void Trace::Logger::log(char const *msg, size_t len)
|
||||||
{
|
{
|
||||||
if (!this || !_evaluate_control()) return;
|
if (!this || !_evaluate_control()) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user