From 6e0f878ee26f4622778fd31b18e9cdf9e0038e0c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 4 Jun 2018 18:03:30 +0200 Subject: [PATCH] core: use FLAGS_SET() macro at one more place --- src/core/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/device.c b/src/core/device.c index 725aa9d3bf4..30707d07a75 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -167,7 +167,7 @@ static int device_found_to_string_many(DeviceFound flags, char **ret) { assert(ret); for (i = 0; device_found_map[i].name; i++) { - if ((flags & device_found_map[i].flag) != device_found_map[i].flag) + if (!FLAGS_SET(flags, device_found_map[i].flag)) continue; if (!strextend_with_separator(&s, ",", device_found_map[i].name, NULL)) -- 2.47.3