Skip to content

Commit c9e2759

Browse files
committed
Replaces magic number with value calculated from appropriate constant
1 parent 9960010 commit c9e2759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ldsout.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ unsigned sysout_loader(const char *sysout_file_name, unsigned sys_size) {
216216
}
217217

218218
if ((stat_buf.st_size & (BYTESPER_PAGE - 1)) != 0)
219-
printf("CAUTION::not an integral number of pages. sysout & 0x1ff = 0x%x\n",
220-
(int)(stat_buf.st_size & (BYTESPER_PAGE - 1)));
219+
printf("CAUTION::not an integral number of pages. sysout & 0x%x = 0x%x\n",
220+
BYTESPER_PAGE - 1, (int)(stat_buf.st_size & (BYTESPER_PAGE - 1)));
221221

222222
if (ifpage.nactivepages != (sysout_size / 2)) {
223223
printf("sysout_loader:IFPAGE says sysout size is %d\n", ifpage.nactivepages);

0 commit comments

Comments
 (0)