I'm working on a small Real-Time OS project and I ran into a small problem.
void printOutput(void)
{
Log_info2("Fib(%d) = %d", FIB_N , cur) ;
System_printf("Fib(%d) = %d", FIB_N , cur) ;
System_flush() ;
}
As you can see this function calls both Log and printf functions with the exact same arguments. My question is - is there any way to make this piece of code more generalized?
I'd appreciate your ideas. Thank you