The query is regarding the updation of Log Module functionality with the one in Sys/Bios.
In the Existing code, we have something like this:
Existing tcf uses the following:
bios.LOG.create("LOG1");
bios.LOG.instance("LOG1").bufLen = 1024;
bios.LOG.instance("LOG1").comment = "Purpose1";
Usage in C:
LOG_printf(LOG1,"%d %d",(x1),(x2))
bios.LOG.create("LOG2");
bios.LOG.instance("LOG2").bufLen = 8192;
bios.LOG.instance("LOG2").comment = "Purpose2";
Usage in C:
LOG_printf(LOG2,"%d",(x1))
bios.LOG.create("LOG3");
bios.LOG.instance("LOG3").bufLen = 1024;
bios.LOG.instance("LOG3").comment = "Purpose3"
Usage in C:
LOG_printf(LOG3,"%d %d",(x1),x2)
In Sys/Bios, the equivalent of LOG_printf (Log_printf*) does not take LoggerBuf_Handle as an input
macro Void
|
So while using Log_printf in Sys/Bios, how does it know which buffer to write to? In the above example there are 3 choices.
Please comment.