Output from a program to a serial port is buffered, and is thus
asynchronous to the program. printk output is synchronous, and as
such will interrupt the normal IO to the port.
If you're going to use delays, you need to take account of the serial
port baud rate and adjust the delay accordingly. However, you don't
really know how many characters are pending in the kernel anyway.
I don't think there's an answer to this if you're going to run both
applications and kernel console on the same port.
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/