xenperf: omit meaningless trailing zeroes from output
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:21:12 +0000 (10:21 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:21:12 +0000 (10:21 +0100)
commitaf0c5430a82c77432729d61c9b409dd32c477b20
tree5084539b6c788129d32a4b9112813e0d406c0ff4
parent78688ffa7e86e7cdb57d383e213fd822aaaa5438
xenperf: omit meaningless trailing zeroes from output

There's no point producing a long chain of zeroes when the previously
calculated total value was zero. To guard against mistakenly skipping
non-zero individual fields, widen "sum" to "unsigned long long".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
tools/misc/xenperf.c