On Wed, 14 May 2014 20:42:41 +0100 Javi Merino wrote: > It looks like an off-by-one error. The system that generated the > trace.dat is running a kernel configured with NR_CPUS=5, can that be > the culprit? You were correct! Actually, I had two off by one errors :-/ One was with calculating the number of added commas - str_size += nr_bits / 32; + str_size += (nr_bits - 1) / 32 No comma if the we have exactly 32 bits (only one if we have 64). The other was with the start: - for (i = str_size - 3; i >= 0; i -= 2) { + for (i = str_size - 2; i >= 0; i -= 2) { I included the '\0' when I didn't have to :-p Should work now. Thanks for testing. -- Steve