lscpu: remove extra space from field key name
The extra space was more obvious in json output. But as the expected test output displays also the standard output can be effected by this change. $ lscpu --json | jq '.lscpu | .[].field' | grep ': ' "L1d cache: " "L1i cache: " "L2 cache: " "L3 cache: " "Vulnerability L1tf: " "Vulnerability Mds: " "Vulnerability Meltdown: " "Vulnerability Spec store bypass: " "Vulnerability Spectre v1: " "Vulnerability Spectre v2: " Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
4ac2ab97d1
commit
30d5ceeda8
|
@ -2117,7 +2117,7 @@ print_summary(struct lscpu_desc *desc, struct lscpu_modifier *mod)
|
||||||
tmp = size_to_human_string(
|
tmp = size_to_human_string(
|
||||||
SIZE_SUFFIX_3LETTER | SIZE_SUFFIX_SPACE,
|
SIZE_SUFFIX_3LETTER | SIZE_SUFFIX_SPACE,
|
||||||
sz);
|
sz);
|
||||||
snprintf(buf, sizeof(buf), _("%s cache: "), ca->name);
|
snprintf(buf, sizeof(buf), _("%s cache:"), ca->name);
|
||||||
add_summary_s(tb, buf, tmp);
|
add_summary_s(tb, buf, tmp);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
@ -2135,7 +2135,7 @@ print_summary(struct lscpu_desc *desc, struct lscpu_modifier *mod)
|
||||||
tmp = size_to_human_string(
|
tmp = size_to_human_string(
|
||||||
SIZE_SUFFIX_3LETTER | SIZE_SUFFIX_SPACE,
|
SIZE_SUFFIX_3LETTER | SIZE_SUFFIX_SPACE,
|
||||||
ca->size);
|
ca->size);
|
||||||
snprintf(buf, sizeof(buf), _("%s cache: "), ca->name);
|
snprintf(buf, sizeof(buf), _("%s cache:"), ca->name);
|
||||||
add_summary_s(tb, buf, tmp);
|
add_summary_s(tb, buf, tmp);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
@ -2154,7 +2154,7 @@ print_summary(struct lscpu_desc *desc, struct lscpu_modifier *mod)
|
||||||
|
|
||||||
if (desc->vuls) {
|
if (desc->vuls) {
|
||||||
for (i = 0; i < desc->nvuls; i++) {
|
for (i = 0; i < desc->nvuls; i++) {
|
||||||
snprintf(buf, sizeof(buf), ("Vulnerability %s: "), desc->vuls[i].name);
|
snprintf(buf, sizeof(buf), ("Vulnerability %s:"), desc->vuls[i].name);
|
||||||
add_summary_s(tb, buf, desc->vuls[i].text);
|
add_summary_s(tb, buf, desc->vuls[i].text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue