Pregunta de entrevista de Codeplay Software

How would you implement a printf() function that could be called on a GPU ?