New printf implementation