GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBT / V1-6-2 > ssrsim / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

LCBT_printf.c File Reference

Basic printf for output and error text in LCBT module. More...

#include <PBS/PBS.h>
#include <PBS/MBA.h>
#include <PBS/CACHE.h>
#include <PBS/WCT.h>
#include <PBS/MTX.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

Functions

void LCBT_printInit ()
 init control struct for PRINTF amd EPRINTF
void LCBT_printAllocBuffs (int numErrLines, int numPrntLines, int wrap)
 allocates buffers for PRINTF and EPRINTF
void LCBT_printReleaseBuffs ()
 releases buffers for PRINTF and EPRINTF
void LCBT_printClearBuffs ()
 clear buffers for PRINTF and EPRINTF, i.e. no text
void LCBT_printShellDisable (int disable)
 set disable flag to stop PRINTF and EPRINTF to VxSHell
void LCBT_printGetErrBuff (char *errBuff, int maxLen)
 fills buffers for EPRINTF
void LCBT_printGetPrntBuff (char *prntBuff, int maxLen)
 fills buffers for PRINTF
void LCBT_printOut (const char *format,...)
 replaces printf() thru macro and send to "output" device
void LCBT_printErr (const char *format,...)
 replaces _printf() thru macro and send text to "error" device


Detailed Description

Basic printf for output and error text in LCBT module.

Author:
Ed Bacho -- ebacho@slac.stanford.edu

Function Documentation

void LCBT_printAllocBuffs ( int  numErrLines,
int  numPrntLines,
int  wrap 
)

allocates buffers for PRINTF and EPRINTF

Parameters:
numErrLines number of lines to be buffered
numPrntLines number of lines to be buffered
wrap 0=buffer fills and stops, 1=buffer wraps and deltes oldest
Returns:
none

References LCBT_printClearBuffs().

void LCBT_printClearBuffs (  ) 

clear buffers for PRINTF and EPRINTF, i.e. no text

Returns:
none

Referenced by LCBT_printAllocBuffs().

void LCBT_printErr ( const char *  format,
  ... 
)

replaces _printf() thru macro and send text to "error" device

Parameters:
format standard _printf format string
... standard vargs for printf
Returns:
none This routine replaces _printf() thru a macro to direct "error text to proper device. It adds an "ERROR" and timestamp prefix to the text.

void LCBT_printGetErrBuff ( char *  errBuff,
int  maxLen 
)

fills buffers for EPRINTF

Parameters:
errBuff buffer to fill in
maxLen length of buffer to fill in
Returns:
none

void LCBT_printGetPrntBuff ( char *  prntBuff,
int  maxLen 
)

fills buffers for PRINTF

Parameters:
prntBuff buffer to fill in
maxLen length of buffer to fill in
Returns:
none

void LCBT_printInit (  ) 

init control struct for PRINTF amd EPRINTF

Returns:
none

void LCBT_printOut ( const char *  format,
  ... 
)

replaces printf() thru macro and send to "output" device

Parameters:
format standard printf format string
... standard vargs for printf
Returns:
none This routine replaces printf() thru a macro to direct "output" text to proper device.

void LCBT_printReleaseBuffs (  ) 

releases buffers for PRINTF and EPRINTF

Returns:
none

void LCBT_printShellDisable ( int  disable  ) 

set disable flag to stop PRINTF and EPRINTF to VxSHell

Parameters:
disable 0=print to shell, 1=no print to shell
Returns:
none


Generated on Fri Mar 25 12:46:15 2011 by  doxygen 1.5.8