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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/pipe/interlock_test.c b/apps/examples/pipe/interlock_test.c
index 0391fe36f..d06442950 100644
--- a/apps/examples/pipe/interlock_test.c
+++ b/apps/examples/pipe/interlock_test.c
@@ -172,8 +172,8 @@ int interlock_test(void)
}
else if (ret != 0)
{
- fprintf(stderr, "interlock_test: Read %d bytes of data -- aborting: %d\n",
- nbytes, errno);
+ fprintf(stderr, "interlock_test: Read %ld bytes of data -- aborting: %d\n",
+ (long)nbytes, errno);
ret = 5;
goto errout_with_file;
}