loader: move "using driver..." message to loader_get_kernel_driver_name
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 5 Mar 2020 14:30:51 +0000 (14:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 1 Apr 2020 15:57:22 +0000 (16:57 +0100)
commitbf1838838a695f27d9d9c486e608a9412044a598
tree6c951f146cd74470c3621eb2580dfafe074a4b92
parente3572f977fc662bdecdac4f525f415bdc7e62147
loader: move "using driver..." message to  loader_get_kernel_driver_name

Move the message to the function which fetches the name.

While here use the same DEBUG/WARNING approach like in the PCI case. The
current method spam a tad much, plus isn't consistent.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4084>
src/loader/loader.c