GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MSG / V3-1-2 > msg_st / rhel6-32
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <MSG/MSG_msgs.h>
#include <MSG_health.h>
#include <MSG_packet.ih>
#include <MSG_prvdefs.h>
Functions | |
static void | reportCapture (MSG_Packet *pkt, const MSG_MsgList *mdb, unsigned int nprm, va_list list) |
Process a message reporting request (packet and varargs). | |
unsigned int | MSG_reportInternal (unsigned int code, WCT_time hack, const char *rtn, unsigned int nprm, va_list list) |
Process a message reporting request. |
CVS $Id: MSG_report.c,v 1.4 2011/03/25 01:05:53 apw Exp $
unsigned int MSG_reportInternal | ( | unsigned int | code, | |
WCT_time | hack, | |||
const char * | rtn, | |||
unsigned int | nprm, | |||
va_list | list | |||
) |
Process a message reporting request.
code | (in) Message code to be reported | |
hack | (in) Wall clock time to be recorded with the meessage | |
rtn | (in) Name of calling routine | |
nprm | (in) Number of parameters that follow | |
list | (in) A variable argument list list (!) |
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 MSG_report() call.
References _MSG_Control::acb, _MSG_Control::beg, _MSG_Counts::drop, _MSG_Control::drp, _MSG_Control::fqi, _MSG_Counts::lwm, MSG__packetFill(), MSG_A_GAPBEGIN, MSG_A_UNIXEROR, MSG_A_UNIXGOOD, MSG_alt, MSG_getLevel(), MSG_getTask(), MSG_getTrace(), MSG_K_FMT4BINT, MSG_mcb, MSG_outputScan(), MSG_RW_DECLARE, MSG_RW_LOCK, MSG_RW_UNLOCK, MSG_S_STARTED, _MSG_Control::now, reportCapture(), _MSG_Control::reset, _MSG_Control::rwi, _MSG_Control::start, and _MSG_Control::state.
Referenced by MSG_initialize().
static void reportCapture | ( | MSG_Packet * | pkt, | |
const MSG_MsgList * | mdb, | |||
unsigned int | nprm, | |||
va_list | list | |||
) | [static] |
Process a message reporting request (packet and varargs).
pkt | (in) Packet in which to form the message | |
mdb | (in) Message data entry corresponding to code | |
nprm | (in) Number of parameters that follow | |
list | (in) A variable argument list list (!) |
References _MSG_Packet::buf, _MSG_Packet::msg, MSG_K_FMT4BINT, MSG_K_FMT8BINT, MSG_K_FMTBITS, MSG_K_FMTDOUBLE, MSG_K_FMTSTRING, MSG_M_FMTBITS, MSG_mcb, _MSG_Message::nick, _MSG_Control::pkt_len, and _MSG_Message::text.
Referenced by MSG_reportInternal().