add printf-like primitive to the buffers.