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
tree: 248a4e065b4003e07f880f4362747ea9d6637684
  1. client_data_usage/
  2. cpmodem_shim/
  3. pse/
  4. qcom-adc/
  5. .gitignore