Go to file
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
.github .github/ipc_fuzzer: add back local compilation hack as a comment 2021-05-19 10:40:00 +01:00
doc doxygen: codecs: exclude 3rd party codec headers from Doxygen 2021-04-10 21:53:32 +01:00
installer xtensa/cmake: fix !CONFIG_TRACE 2021-05-18 16:46:44 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
rimage@6f45b61921 rimage: update rimage submodule 2021-05-24 11:16:30 +01:00
scripts docker: upgrade base ubuntu image to 20.04 2021-05-12 20:29:37 +01:00
smex smex: don't corrupt the build with a bogus .ldc output 2021-05-18 16:46:44 +01:00
src ll-scheduler: use a correct function to initialise a list head 2021-05-24 11:17:22 +01:00
test clock: add a function to convert microseconds to ticks 2021-05-24 11:17:22 +01:00
tools logger: increase time_fmt[] size to avoid a gcc warning. 2021-05-24 15:27:18 -07:00
zephyr zephyr: trace: remove useless #ifdef __ZEPHYR__ macro 2021-05-24 16:01:05 +01:00
.gitignore gitignore: Add checkpatch temporary file to gitignore 2020-10-22 13:05:23 +01:00
.gitmodules .gitmodules: use a relative path 2021-04-01 13:03:01 +01:00
.travis.yml .github: replace HAVE_CONFIG KConfig hack with an override 2021-03-23 12:17:22 +00:00
CMakeLists.txt cmocka: add support to build mocks on xtensa GCC 2021-04-20 15:35:18 +01:00
CODEOWNERS codec_adapter: add mrajwa & dbaluta as code owners 2021-04-02 13:34:52 +01:00
Kconfig kconfig: move DW_DMA_AGGREGATED_IRQ to dw/Kconfig 2021-05-19 10:50:02 +01:00
LICENCE LICENSE: Add Cadence license 2021-04-12 10:22:15 +01:00
README.md .github: rename workflow from "Github Action CI" to "Github Actions" 2021-01-28 13:20:22 +00:00

README.md

Sound Open Firmware

Status

GitHub Actions Build Status Gitter chat IRC chat

Documentation

See docs

Running the tests

See unit testing documentation

Deployment

TODO: Add additional notes about how to deploy this on a live system

Contributing

See Contributing to the Project

License

This project is licensed under the BSD Clause 3 - see the LICENCE file for details