And as always, I didn't re-check a patch before sending it :) Here is acorrected version without any fprintf's.
-- Best regards,Aleksander Alekseev