F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
LogPrintf.cpp
Go to the documentation of this file.
1
6#include <Os/Log.hpp>
7
8#include <cstdio>
9
10namespace Os {
12
13 // Register myself as a logger at construction time. If used in unison with LogDefault.cpp, this will
14 // automatically create this as a default logger.
15 this->registerLogger(this);
16 }
17
18 // Instance implementation
20 const char* fmt,
21 POINTER_CAST a0,
22 POINTER_CAST a1,
23 POINTER_CAST a2,
24 POINTER_CAST a3,
25 POINTER_CAST a4,
26 POINTER_CAST a5,
27 POINTER_CAST a6,
28 POINTER_CAST a7,
29 POINTER_CAST a8,
31 ) {
32 (void) printf(fmt, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9);
33 (void) fflush(stdout);
34 }
35}
36
PlatformPointerCastType POINTER_CAST
Definition BasicTypes.h:53
static void registerLogger(Logger *logger)
Static logger to use when calling the above 'logMsg' function.
Definition Logger.cpp:27
void log(const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)
Definition LogPrintf.cpp:19
Definition File.cpp:6