aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ahoy/emulator.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c
index 4ada357..34e31ad 100644
--- a/src/ahoy/emulator.c
+++ b/src/ahoy/emulator.c
@@ -76,8 +76,10 @@ emulate(struct u8view prog)
{
struct timespec tp;
- if (prog.len > MEM_FREE)
- diex("%s: binary of size %zu KiB too large to fit in RAM", "TODO", 0ul);
+ if (prog.len > MEM_FREE) {
+ diex("%s: binary of size %.1f KiB exceeds %d B maximum", "TODO",
+ (double)prog.len / 1024, MEM_FREE);
+ }
PC = MEM_RESERVED;
memcpy(mem + PC, prog.p, prog.len);