Go to file
Karol Trzcinski 52e82f4c66 logger: Refactor fread() error check in logger_read()
fread() returns number of readed blocks, 0 when nothing read.
Comparison fread return value with "!ret" is quite misleading -
may suggests that negative value is returrned after fail.

Swapping if content makes flow easier, then first is error check,
and eventyally return statement, next try to reopen file.
It allows to check error condition only in one place, so there
won't be possibility to use different error checks in subsequent
stages (like ferror() and errno).

in_file alignment with trace entry size check has been added,
to warn about corrupted file.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
2020-09-25 13:47:47 +01:00
.github/ISSUE_TEMPLATE github: fix link to bug tracking docs 2020-01-09 11:24:06 +00:00
doc audio-stream: dox: add full api documentation 2020-03-28 13:04:55 +01:00
keys Move signing key pair from rimage/ up one level 2020-05-13 10:16:04 +01:00
rimage@fccf521331 rimage: Update submodule to v1.6, commit fccf521, CI updates. 2020-09-24 14:13:06 +01:00
scripts docker-run.sh: pass-through PRIVATE_KEY_OPTION 2020-09-25 13:41:33 +01:00
smex rimage: Update to version with changed headers location 2020-05-29 11:15:22 +01:00
src pipeline: adds missing buffer locks/unlocks 2020-09-25 13:42:39 +01:00
test test: pcm converter: Utilize comp_buffer implementation instead of mocking 2020-09-15 10:49:24 +02:00
tools logger: Refactor fread() error check in logger_read() 2020-09-25 13:47:47 +01:00
zephyr zephyr: fix iir and fir file renaming 2020-09-15 09:40:23 +01:00
.gitignore .gitignore: remove .tarball-version 2020-07-10 15:41:18 +01:00
.gitmodules Add rimage as a git submodule 2020-05-13 10:16:04 +01:00
.travis.yml travis: upgrade distribution to Ubuntu 20.04 2020-09-21 10:23:13 +01:00
CMakeLists.txt CMakeLists.txt: change generated config.h default to autoconfig.h 2020-06-22 13:01:26 +01:00
CODEOWNERS CODEOWNERS: really add marc-hb to scripts 2020-09-19 08:30:29 +01:00
Kconfig Revert "idc: set budget for IDC task" 2020-07-29 15:50:42 -05:00
LICENCE Remove rimage from source tree 2020-05-13 10:16:04 +01:00
README.md README.md: remove misleading "Prerequisites" and "Build Instructions" 2020-07-31 19:07:19 +02:00

README.md

Sound Open Firmware

Status

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