core: use FLAGS_SET() macro at one more place

This commit is contained in:
Lennart Poettering
2018-06-07 13:36:19 +02:00
parent ccd419f0e7
commit 6e0f878ee2
+1 -1
View File
@@ -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))