From 4f9424cb55a1514a5a50ef29897e77f2c836a022 Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 22 Jul 2019 23:03:12 -0500 Subject: struct Info: handle groups with the same name in flatten() Signed-off-by: Burt P --- hardinfo/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hardinfo/info.c b/hardinfo/info.c index 1d78422a..bfc11fc2 100644 --- a/hardinfo/info.c +++ b/hardinfo/info.c @@ -242,7 +242,7 @@ static void flatten_group(GString *output, const struct InfoGroup *group, guint guint i; if (group->name != NULL) - g_string_append_printf(output, "[%s]\n", group->name); + g_string_append_printf(output, "[%s#%d]\n", group->name, group_count); if (group->sort != INFO_GROUP_SORT_NONE) g_array_sort(group->fields, sort_functions[group->sort]); -- cgit v1.2.3