Hi Huy,
In this case if you'd like to use the same functions that are being used in the examples.
Take a look at how usb_echo() works.
usb_echo you will find that you can print directly in the console. For example,
usb_echo("Hello World!"\r\n);
and you will see hello world printed in the serial terminal that you are using.
If you see the root function it is essentially a printf.
Hope this helps. Let me know if I answered your question or if you have other questions.
Best Regards,
Sabina