How to make in-kernel printf working using driver api only?

If anyone knows how to get printf using driver api only, please share.

Sergey.