GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EMSG / V1-1-0
Constituent: emsg_st     Tag: sun-gcc
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "EMSG/EMSG_msgs.h"
#include "EMSG_prvdefs.h"
Include dependency graph for EMSG_report.c:
Functions | |
unsigned int | EMSG_report (unsigned int code, const char *rtn, unsigned int nprm,...) |
Process a message reporting request. |
|
Process a message reporting request. This routine reports a message. It allocates a message packet and populates it with a block of standard information (timestamp, CPU, task name, etc.) and the variable information in the variadic arguments following nprm. The packet is sent to an message task (in the multi-threaded case) where the message is formatted using the formatting string associated with the message code. The message task then calls all output processors in turn to do whatever it is they want to do with the information. In the single-threaded case, the message processing occurs inline with the routine call.
|