]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite/test-{init,remove}: don't use %m with kmod API
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 4 Jun 2025 16:16:25 +0000 (17:16 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 13:03:26 +0000 (08:03 -0500)
commite8e412239037669b89aa657a3a9d7d7b9bddd3e7
tree63553191b3e0639b9b55d1b730abd5e2d9de38aa
parenta0bac391ff72105d555e700a750a87eb130b2ad8
testsuite/test-{init,remove}: don't use %m with kmod API

The kmod API returns the error code directly, which one should be used
alongside strerror(). Using %m may return a different result all
together.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/368
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-init.c
testsuite/test-remove.c