summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-08-31 13:18:53 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-01 00:55:37 +0900
commit3a4e4ffacedf3ba5755547fd54b100b77bdec4a6 (patch)
tree3f680590462eb2b4c5b7bc33ff493300a1455faf /src/libudev
parent18f806b8d9597c6a7b590984e3c65d5fd9cb56b0 (diff)
downloadsystemd-3a4e4ffacedf3ba5755547fd54b100b77bdec4a6.tar.gz
tree-wide: Use devnum helpers in a few more places
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/test-libudev.c3
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)