aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_fuchsia.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_fuchsia.h')
-rw-r--r--executor/executor_fuchsia.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/executor/executor_fuchsia.h b/executor/executor_fuchsia.h
index ebd4f678d..0703a07dc 100644
--- a/executor/executor_fuchsia.h
+++ b/executor/executor_fuchsia.h
@@ -12,8 +12,9 @@
static void os_init(int argc, char** argv, void* data, size_t data_size)
{
- if (syz_mmap((size_t)data, data_size) != ZX_OK)
- fail("mmap of data segment failed");
+ zx_status_t status = syz_mmap((size_t)data, data_size);
+ if (status != ZX_OK)
+ fail("mmap of data segment failed with: %d", status);
}
static long execute_syscall(const call_t* c, long a[kMaxArgs])