]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfio: selftests: Eliminate overly chatty logging
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:22 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:06 +0000 (10:58 -0700)
Eliminate overly chatty logs that are printed during almost every test.
These logs are adding more noise than value. If a test cares about this
information it can log it itself. This is especially true as the VFIO
selftests gains support for multiple devices in a single test (which
multiplies all these logs).

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-8-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/vfio_pci_driver.c

index e5e8723ecb416b25b9302dc59da888eefdbdee86..abb7a62a03eaa6412c608ca34ce88691fa46623e 100644 (file)
@@ -1,6 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-only
-#include <stdio.h>
-
 #include "../../../kselftest.h"
 #include <vfio_util.h>
 
@@ -29,7 +27,6 @@ void vfio_pci_driver_probe(struct vfio_pci_device *device)
                if (ops->probe(device))
                        continue;
 
-               printf("Driver found: %s\n", ops->name);
                device->driver.ops = ops;
        }
 }
@@ -58,17 +55,6 @@ void vfio_pci_driver_init(struct vfio_pci_device *device)
        driver->ops->init(device);
 
        driver->initialized = true;
-
-       printf("%s: region: vaddr %p, iova 0x%lx, size 0x%lx\n",
-              driver->ops->name,
-              driver->region.vaddr,
-              driver->region.iova,
-              driver->region.size);
-
-       printf("%s: max_memcpy_size 0x%lx, max_memcpy_count 0x%lx\n",
-              driver->ops->name,
-              driver->max_memcpy_size,
-              driver->max_memcpy_count);
 }
 
 void vfio_pci_driver_remove(struct vfio_pci_device *device)