public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Print from DXE_DRIVER
@ 2017-02-08 22:10 David A. Van Arnem
  2017-02-09  0:15 ` Laszlo Ersek
  2017-02-09  0:43 ` Andrew Fish
  0 siblings, 2 replies; 11+ messages in thread
From: David A. Van Arnem @ 2017-02-08 22:10 UTC (permalink / raw)
  To: edk2-devel@ml01.01.org

Hello,

I am working on a DXE_DRIVER for a custom device.  I like to use Print()
statements to trace code execution during development.  Thus I have put
a print statement in each of my Supported(), Start(), and Stop()
functions for the driver binding protocol.  Currently I am building the
driver as part of the UefiCpuPkg, with no changes to the current
UefiCpuPkg.dsc except for adding my driver under [Components].  I have
also added the PrintLib and UefiLib to the [LibraryClasses] section in
my driver's INF file, and included the necessary headers.

When I load the driver from the shell (load <drivername>.efi), I get a
message indicating it loaded successfully, but no output from the
Print() messages.  The documentation for the shell says load should test
both the Supported() and Start() functions, so I would expect to see the
output, but I am not sure I am using the correct library instances to
accomplish this.  Is it possible to use Print() from a DXE_DRIVER, and
which library instance should I use in the UefiCpuPkg.dsc file?  If not,
would changing it to a UEFI_DRIVER help?  Any other recommendations?

If there is an example in edk2 that does this that you could point me
to, that would be sufficient as well.  Thanks!

-- 
Regards,
David Van Arnem
Development Engineer IV
Computer Measurement Laboratory, LLC



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-02-09 20:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 22:10 Print from DXE_DRIVER David A. Van Arnem
2017-02-09  0:15 ` Laszlo Ersek
2017-02-09  0:41   ` David A. Van Arnem
2017-02-09  0:49     ` Andrew Fish
2017-02-09  0:43 ` Andrew Fish
2017-02-09  0:49   ` David A. Van Arnem
2017-02-09  1:04     ` Andrew Fish
2017-02-09  2:16       ` Gao, Liming
2017-02-09  2:55   ` Rebecca Cran
2017-02-09  2:59     ` Tim Lewis
2017-02-09 20:38       ` David A. Van Arnem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox