Commit 9094fa36 authored by Christian Kellner's avatar Christian Kellner
Browse files

manager: don't de-duplicate host device names

When labeling a device, we normally do a duplication check, and
if we find more than once device with the same name, we append
a number suffix. Let's not do that for host devices, since they
are arguably represent the same thing, even if technically the
are different controllers with their own unique id.
parent fbde3fd0
......@@ -1355,7 +1355,7 @@ bolt_manager_label_device (BoltManager *mgr,
}
/* we counted the target too, > 1 means duplicates */
if (count > 1)
if (count > 1 && !bolt_device_is_host (target))
label = g_strdup_printf ("%s %s #%u", vendor, name, count);
else
label = g_strdup_printf ("%s %s", vendor, name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment