If i have two serial port in the controller(interfaced 16c550) how to access both using printf library
Either write your own com2_printf() that makes use of vsnprintf() and then copies the formatted string to the second port, or add a variable that controls which physical port that should receive the output from printf().