selftests: drivers/dma-buf: Improve message in selftest summary
authorSoumya Negi <soumya.negi97@gmail.com>
Fri, 1 Jul 2022 12:50:52 +0000 (05:50 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 8 Jul 2022 16:55:57 +0000 (10:55 -0600)
Selftest udmabuf for the dma-buf driver is skipped when the device file
(e.g. /dev/udmabuf) for the DMA buffer cannot be opened i.e. no DMA buffer
has been allocated.

This patch adds clarity to the SKIP message.

Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/drivers/dma-buf/udmabuf.c

index de1c4e6de0b2110ce6c91bf248ae8e946d4b6105..c812080e304e8fab6788c111b9894786dbf04b40 100644 (file)
@@ -32,7 +32,8 @@ int main(int argc, char *argv[])
 
        devfd = open("/dev/udmabuf", O_RDWR);
        if (devfd < 0) {
-               printf("%s: [skip,no-udmabuf]\n", TEST_PREFIX);
+               printf("%s: [skip,no-udmabuf: Unable to access DMA buffer device file]\n",
+                      TEST_PREFIX);
                exit(77);
        }