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