CDU: Stop clearing stats prematurely

The function 'seq_show' can be called multiple times if the printf
buffer overflows.  When this happened in the stats_clear case, we would
lose the CDU data remaining in that bucket because we'd clear the entire
bucket.

This patch fixes this issue by checking that we've not overflowed the
buffer before clearing the stats.

Change-Id: Id110faf83b4e33c9865628e98d0cfee8df64bc6b
1 file changed