diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-31 13:18:53 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-31 17:55:37 +0200 |
commit | 3a4e4ffacedf3ba5755547fd54b100b77bdec4a6 (patch) | |
tree | 3f680590462eb2b4c5b7bc33ff493300a1455faf /src/libudev | |
parent | test: don't mistake error for success (diff) | |
download | systemd-3a4e4ffacedf3ba5755547fd54b100b77bdec4a6.tar.xz systemd-3a4e4ffacedf3ba5755547fd54b100b77bdec4a6.zip |
tree-wide: Use devnum helpers in a few more places
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/test-libudev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libudev/test-libudev.c b/src/libudev/test-libudev.c index b4526debf0..94d34b1ae2 100644 --- a/src/libudev/test-libudev.c +++ b/src/libudev/test-libudev.c @@ -6,6 +6,7 @@ #include <unistd.h> #include "alloc-util.h" +#include "devnum-util.h" #include "fd-util.h" #include "libudev-list-internal.h" #include "libudev-util.h" @@ -128,7 +129,7 @@ static void test_device_devnum(struct udev *udev) { dev_t devnum = makedev(1, 3); _cleanup_(udev_device_unrefp) struct udev_device *device; - log_info("/* %s, device %u:%u */", __func__, major(devnum), minor(devnum)); + log_info("/* %s, device " DEVNUM_FORMAT_STR " */", __func__, DEVNUM_FORMAT_VAL(devnum)); device = udev_device_new_from_devnum(udev, 'c', devnum); if (device) |