summaryrefslogtreecommitdiff
path: root/apps/examples/pipe/interlock_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/pipe/interlock_test.c')
-rw-r--r--apps/examples/pipe/interlock_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/examples/pipe/interlock_test.c b/apps/examples/pipe/interlock_test.c
index 20d4113eb..9cdfaec5c 100644
--- a/apps/examples/pipe/interlock_test.c
+++ b/apps/examples/pipe/interlock_test.c
@@ -172,7 +172,8 @@ int interlock_test(void)
}
else if (ret != 0)
{
- fprintf(stderr, "interlock_test: Read %d bytes of data -- aborting: %d\n", nbytes);
+ fprintf(stderr, "interlock_test: Read %d bytes of data -- aborting: %d\n",
+ nbytes, errno);
ret = 5;
goto errout_with_file;
}