sof/tools/logger
Marc Herbert a5b3c8e36b logger: increase time_fmt[] size to avoid a gcc warning.
gcc does not know that we already filtered unreasonable precision
values.

Increase the size of the temporary string from 32 bytes to 64
bytes. We're running on the host, memory is cheap.

Fixes commit d6f6a456c1 ("logger: fix column and header alignments")
For some reason CMake uses -Werror=format-truncation only in Release
mode.

Avoids the following warning:

```
sof/tools/logger/convert.c: In function ‘fetch_entry’:
sof/tools/logger/convert.c:514:27: error: ‘%d’ directive output may be
  truncated writing between 1 and 10 bytes into a region of size
  between 0 and 18 [-Werror=format-truncation=]

  514 |      "%%s[%%%d.%df] (%%%d.%df)%%s ",
      |                           ^~

sof/tools/logger/convert.c:514:6: note: directive argument in the
       range [0, 2147483647]
  514 |      "%%s[%%%d.%df] (%%%d.%df)%%s ",
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /usr/include/stdio.h:867,
                 from sof/tools/logger/convert.h:13,
                 from sof/tools/logger/convert.c:21:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10:

   note: ‘__builtin___snprintf_chk’ output between 21 and 59 bytes into
   a destination of size 32

   67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |      __bos (__s), __fmt, __va_arg_pack ());
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors
```

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2021-05-24 15:27:18 -07:00
..
CMakeLists.txt logger: Parse runtime filter levels 2020-08-25 13:09:38 +01:00
convert.c logger: increase time_fmt[] size to avoid a gcc warning. 2021-05-24 15:27:18 -07:00
convert.h logger: new relative timestamps option, relative to first entry seen 2021-04-02 13:35:48 +01:00
filter.c Add and fix many logger and dma-related comments. No code change. 2021-04-28 15:52:44 +01:00
filter.h logger: Create global convert_config variable to avoid spaghetti code. 2020-09-01 10:11:55 +01:00
logger.c Add and fix many logger and dma-related comments. No code change. 2021-04-28 15:52:44 +01:00
misc.c Add and fix many logger and dma-related comments. No code change. 2021-04-28 15:52:44 +01:00
misc.h logger: use __attribute__((format(printf, 1, 2))) in misc.h 2020-09-14 10:43:54 +01:00