Your printf argument should end with a \n, to flush the last word/line.