Go to the source code of this file.
Functions | |
char LOG_tag[9] | __attribute__ ((weak)) |
L4C_CTOR (LOG_setup_tag, L4CTOR_BEFORE_BACKEND) | |
void | LOG_setup_tag (void) |
Set the LOG tag. | |
Variables | |
char | LOG_tag [9] = "" |
Symbol defining the logtag. |
Definition in file log_init.c.
void LOG_setup_tag | ( | void | ) |
Set the LOG tag.
This function should be called by the startup-code, prior to any output of the loglib (if used) or the thread-creation using the thread package. If l4util_progname is empty, it will be filled with the first 8 chars of the last portion of the program name.
With L4Env, this function is called after initializing l4util's argc/argv. It is called via constructors a second time before calling main(). Without L4Env and the __main() from l4util, this function is called as constructor after initializing argc/argv.
Definition at line 37 of file log_init.c.
char LOG_tag[9] = "" |
Symbol defining the logtag.
This is a weak symbol which can be overwritten to define the logtag. The intention is that you can set the logtag on compile-time, if you cannot guarantee to call LOG_init() prior to first output for whatever reasons.
Use one of the two methods to define the logtag, either by defining this symbol or by calling LOG_init().
Definition at line 18 of file log_init.c.