From 193cc06561775b9eaa5d63d19ffed8cdec9cb3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 21 Aug 2017 23:48:24 +0100 Subject: [PATCH] Improve error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antonio Niño Díaz --- src/link/assign.c | 4 ++-- src/link/output.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/link/assign.c b/src/link/assign.c index 35f8759f..17d0dcd0 100644 --- a/src/link/assign.c +++ b/src/link/assign.c @@ -336,7 +336,7 @@ AssignFloatingBankSections(enum eSectionType type) if ((org = area_AllocAnyBank(pSection->nByteSize, pSection->nAlign, type)) != -1) { if (options & OPT_OVERLAY) { - errx(1, "All sections must be fixed when using overlay"); + errx(1, "All sections must be fixed when using an overlay file."); } pSection->nOrg = org & 0xFFFF; pSection->nBank = org >> 16; @@ -512,7 +512,7 @@ AssignSections(void) if (pSection->oAssigned == 0 && pSection->nOrg != -1 && pSection->nBank == -1) { if (options & OPT_OVERLAY) { - errx(1, "All sections must be fixed when using overlay"); + errx(1, "All sections must be fixed when using an overlay file."); } switch (pSection->Type) { case SECT_ROMX: diff --git a/src/link/output.c b/src/link/output.c index 24ce01c0..06265205 100644 --- a/src/link/output.c +++ b/src/link/output.c @@ -115,11 +115,11 @@ Output(void) } fseek(f_overlay, 0, SEEK_END); if (ftell(f_overlay) % 0x4000 != 0) { - errx(1, "Overlay file must be aligned to 0x4000 bytes\n"); + errx(1, "Overlay file must be aligned to 0x4000 bytes."); } MaxOverlayBank = (ftell(f_overlay) / 0x4000) - 1; if (MaxOverlayBank < 1) { - errx(1, "Overlay file must be at least 0x8000 bytes\n"); + errx(1, "Overlay file must be at least 0x8000 bytes."); } if (MaxOverlayBank > MaxBankUsed) { MaxBankUsed = MaxOverlayBank;