From c9e275966612d38f80ccdf644efb969267dc2277 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Tue, 29 Jul 2025 19:59:03 -0700 Subject: [PATCH] Replaces magic number with value calculated from appropriate constant --- src/ldsout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ldsout.c b/src/ldsout.c index 2db964d..0453e29 100644 --- a/src/ldsout.c +++ b/src/ldsout.c @@ -216,8 +216,8 @@ unsigned sysout_loader(const char *sysout_file_name, unsigned sys_size) { } if ((stat_buf.st_size & (BYTESPER_PAGE - 1)) != 0) - printf("CAUTION::not an integral number of pages. sysout & 0x1ff = 0x%x\n", - (int)(stat_buf.st_size & (BYTESPER_PAGE - 1))); + printf("CAUTION::not an integral number of pages. sysout & 0x%x = 0x%x\n", + BYTESPER_PAGE - 1, (int)(stat_buf.st_size & (BYTESPER_PAGE - 1))); if (ifpage.nactivepages != (sysout_size / 2)) { printf("sysout_loader:IFPAGE says sysout size is %d\n", ifpage.nactivepages);