Mercurial > hg > dmlib
changeset 498:270a2d695607
Describe option did not actually show the unreserved/unused areas of the
output file, fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 17 Nov 2012 14:22:22 +0200 |
parents | b02f1bfce53b |
children | c9b83226e21a |
files | objlink.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/objlink.c Sat Nov 17 14:21:42 2012 +0200 +++ b/objlink.c Sat Nov 17 14:22:22 2012 +0200 @@ -674,15 +674,15 @@ ssize_t siz, kz; // Check for empty, unreserved areas - if (prev != NULL && prev->start - 1 > curr->end + 1) + if (prev != NULL && curr->start - prev->end > 1) { - siz = (prev->start - 1) - (curr->end + 1); + siz = (curr->start - 1) - (prev->end + 1); kz = siz / (1024 * 2); if (kz > 1) memPrintEmpty(f, kz); - snprintf(desc, sizeof(desc), "EMPTY (%d)", siz); - fprintf(f, "$%.4x - $%.4x | %-40s |\n", curr->end + 1, prev->start - 1, desc); + snprintf(desc, sizeof(desc), "EMPTY (%d bytes)", siz); + fprintf(f, "$%.4x - $%.4x | %-40s |\n", prev->end + 1, curr->start - 1, desc); if (kz > 1) memPrintEmpty(f, kz); memPrintLine(f);