[LIB]: Only check if it is a cacheline boundary when the offset changes
So that we print the boundary after the last member in a bitfield. Spotted by Matthew Wilcox. Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
parent
c87d8d831a
commit
27ac8cec6c
|
@ -2521,7 +2521,9 @@ size_t class__fprintf(const struct class *self, const struct cu *cu,
|
|||
struct tag *type;
|
||||
const ssize_t cc_last_size = pos->offset - last_offset;
|
||||
|
||||
printed += class__fprintf_cacheline_boundary(last_cacheline,
|
||||
if (pos->offset != last_offset)
|
||||
printed +=
|
||||
class__fprintf_cacheline_boundary(last_cacheline,
|
||||
sum, sum_holes,
|
||||
&newline,
|
||||
&last_cacheline,
|
||||
|
|
Loading…
Reference in New Issue