fprintf: Remove extraneous sizeof operator

That was affecting --suppress_aligned_attribute, detected using the
'btfdiff' utility, that uses pahole with DWARF and BTF and compares
their outputs, and since we don't have this in BTF, we use
--suppress_aligned_attribute with '-F dwarf'.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-12-13 11:35:13 -03:00
parent a59459bb80
commit 644466dce7
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ static size_t class_member__fprintf(struct class_member *member, bool union_memb
slen += packed_len;
}
if (tag__type(type)->alignment != 0 && sizeof!conf->suppress_aligned_attribute) {
if (tag__type(type)->alignment != 0 && !conf->suppress_aligned_attribute) {
char bftmp[64];
int aligned_len = snprintf(bftmp, sizeof(bftmp), " __attribute__((__aligned__(%u)))", tag__type(type)->alignment);
slen += aligned_len;