PelionIoT / mbed-trace

mbed trace library
Apache License 2.0
18 stars 15 forks source link

mbed_trace_print_function_set accepts variable length arguments #113

Open n4ka9avva opened 1 year ago

n4ka9avva commented 1 year ago

Hello team, I'm begineer in embed systems and study Mbed OS recently.

I'd like to redirect mbed-trace output to a file and came up with using mbed_trace_print_function_set. My custom print function would wrapped fprintf and receive variable length arguments like printf and fprintf.

However, in my understanding, mbed_trace_print_function_set accepts only one char arugument so that I couldn't pass multiple arguments including format string and values.

I hope mbed_trace_print_function_set will change to accept variable length arguments.

Best regards