TA-REF
trace2.c File Reference
#include <stdarg.h>
#include "trace.h"
#include "edger/Enclave_t.h"
+ Include dependency graph for trace2.c:

Functions

void trace_vprintf (const char *func, int line, int level, bool level_ok, const char *fmt, va_list ap)
 
void trace_printf (const char *func, int line, int level, bool level_ok, const char *fmt,...)
 

Function Documentation

◆ trace_printf()

void trace_printf ( const char *  func,
int  line,
int  level,
bool  level_ok,
const char *  fmt,
  ... 
)

trace_printf() - Prints the formatted data to stdout.

This function returns the value of ap by calling va_end().

Parameters
funcPointer to a buffer where the resulting C-string is stored.
lineinteger type of line
level_okboolen value
fmtC string that contains a format string
apA value identifying a variable arguments list
Returns
Total number of characters is returned.

◆ trace_vprintf()

void trace_vprintf ( const char *  func,
int  line,
int  level,
bool  level_ok,
const char *  fmt,
va_list  ap 
)

trace_vprintf() - Writes the formatted data from variable argument list to sized buffer.

This function returns the buffer character by calling ocall_print_string()

Parameters
funcPointer to a buffer where the resulting C-string is stored.
lineinteger type of line
level_okboolen value
fmtC string that contains a format string
apA value identifying a variable arguments list
Returns
buf The total number of characters written is returned.