Skip to content
Commit 36c8b433 authored by Yuval Peress's avatar Yuval Peress Committed by Carles Cufí
Browse files

scripts: Print file causing error for syscalls



I was using a source file provided by TDK for a sensor driver
and the file was (originally) not encoded as UTF-8. When the read()
function was called, the build would fail but I had no idea why.

This change wrapps the 'read()' call and prints the error with
the file name as context.

Signed-off-by: default avatarYuval Peress <peress@google.com>
parent 1f52e70f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment