diff options
author | Burt P <pburt0@gmail.com> | 2019-07-05 23:47:20 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-06 13:08:54 -0700 |
commit | 1d22dffebc3ef27b0fd3cf6fc7f0a47124ca5e5d (patch) | |
tree | 96e438320c355324f310975afd2c7f14703c9e21 /hardinfo | |
parent | 5bd8021f5355b022845f0688a13c0881a56c3b53 (diff) |
struct info: try bools instead of flags
Diffstat (limited to 'hardinfo')
-rw-r--r-- | hardinfo/info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hardinfo/info.c b/hardinfo/info.c index b9cd8cb9..7e49fd73 100644 --- a/hardinfo/info.c +++ b/hardinfo/info.c @@ -157,10 +157,10 @@ static void flatten_group(GString *output, const struct InfoGroup *group, guint else snprintf(tag, 255, "ITEM%d-%d", group_count, i); - if (*tag != 0 || field.flags) + if (*tag != 0 || field.highlight || field.report_details) g_string_append_printf(output, "$%s%s%s$", - field.flags & INFO_FIELD_SELECTED ? "*" : "", - field.flags & INFO_FIELD_SELECTED ? "!" : "", + field.highlight ? "*" : "", + field.report_details ? "!" : "", tag); g_string_append_printf(output, "%s=%s\n", field.name, field.value); |