log_init.c File Reference

Initialize the LOG_tag. More...

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.


Detailed Description

Initialize the LOG_tag.

Date:
02/13/2003
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Definition in file log_init.c.


Function Documentation

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.


Variable Documentation

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().

Note:
The length of the symbol must be 9 characters in length, and it must be 0-terminated.
See also:
LOG_init()

Definition at line 18 of file log_init.c.


Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6