]> Gentwo Git Trees - linux/.git/commit
vfio: selftests: Upgrade driver logging to dev_err()
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:24 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:06 +0000 (10:58 -0700)
commit28a84da744dd647d07b784623ddd671c00371297
tree88e51764e3fa4719e1ca05173a7f8137a94fdd09
parentc48545442e18219cca7f658ecdf7562ef58cfac6
vfio: selftests: Upgrade driver logging to dev_err()

Upgrade various logging in the VFIO selftests drivers from dev_info() to
dev_err(). All of these logs indicate scenarios that may be unexpected.
For example, the logging during probing indicates matching devices but
that aren't supported by the driver. And the memcpy errors can indicate
a problem if the caller was not trying to do something like exercise I/O
fault handling. Exercising I/O fault handling is certainly a valid thing
to do, but the driver can't infer the caller's expectations, so better
to just log with dev_err().

Suggested-by: Raghavendra Rao Ananta <rananta@google.com>
Reviewed-by: Alex Mastro <amastro@fb.com>
Tested-by: Alex Mastro <amastro@fb.com>
Reviewed-by: Raghavendra Rao Ananta <rananta@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20251126231733.3302983-10-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c
tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c