Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
/*
* (c) 2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/re/env.h>
#include <l4/sys/compiler.h>
L4_BEGIN_DECLS
L4_CV L4_INLINE void
l4re_log_print(char const *string) L4_NOTHROW;
L4_CV L4_INLINE void
l4re_log_printn(char const *string, int len) L4_NOTHROW;
L4_CV void
l4re_log_print_srv(const l4_cap_idx_t logcap,
char const *string) L4_NOTHROW;
L4_CV void
l4re_log_printn_srv(const l4_cap_idx_t logcap,
char const *string, int len) L4_NOTHROW;
/********** Implementations ***************************/
L4_CV L4_INLINE void
l4re_log_print(char const *string) L4_NOTHROW
{
l4re_log_print_srv(l4re_global_env->log, string);
}
L4_CV L4_INLINE void
l4re_log_printn(char const *string, int len) L4_NOTHROW
{
l4re_log_printn_srv(l4re_global_env->log, string, len);
}
L4_END_DECLS
compiler.h
L4 compiler related defines.
env.h
Environment interface.
l4re_log_print
L4_BEGIN_DECLS void l4re_log_print(char const *string) L4_NOTHROW
Write a null terminated string to the default log.
Definition log.h:81
l4re_log_print_srv
void l4re_log_print_srv(const l4_cap_idx_t logcap, char const *string) L4_NOTHROW
Write a null terminated string to a log.
l4re_log_printn
void l4re_log_printn(char const *string, int len) L4_NOTHROW
Write a string of a given length to the default log.
Definition log.h:87
l4re_log_printn_srv
void l4re_log_printn_srv(const l4_cap_idx_t logcap, char const *string, int len) L4_NOTHROW
Write a string of a given length to a log.
l4_cap_idx_t
unsigned long l4_cap_idx_t
Capability selector type.
Definition types.h:336
L4_CV
#define L4_CV
Define calling convention.
Definition linkage.h:33
L4_NOTHROW
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
Definition compiler.h:161
L4_INLINE
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
L4_BEGIN_DECLS
#define L4_BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:165
L4_END_DECLS
#define L4_END_DECLS
End section with C types and functions.
Definition compiler.h:166