Hello there,
Have you linked ntstrsafe.lib in your driver ?
Disassemble your driver to discover why DbgPrint is still referenced. The import stub was pulled in by something during the link operation. Perhaps you are linking a library that references DbgPrint() or a header file with a static/inline references it?
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--