Cosmetic. In debug pritnf in ElfLoader::memorySize don't prepend '+'

when printing the size of the first loadable segment.
This commit is contained in:
uwe 2006-03-02 23:56:58 +00:00
parent 64506871c4
commit 7a546fd8c5

View File

@ -1,4 +1,4 @@
/* $NetBSD: load_elf.cpp,v 1.15 2006/01/14 23:23:32 uwe Exp $ */ /* $NetBSD: load_elf.cpp,v 1.16 2006/03/02 23:56:58 uwe Exp $ */
/*- /*-
* Copyright (c) 2001 The NetBSD Foundation, Inc. * Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -116,7 +116,9 @@ ElfLoader::memorySize()
for (i = 0; i < _eh.e_phnum; i++, ph++) { for (i = 0; i < _eh.e_phnum; i++, ph++) {
if (ph->p_type == PT_LOAD) { if (ph->p_type == PT_LOAD) {
size_t filesz = ph->p_filesz; size_t filesz = ph->p_filesz;
DPRINTF((TEXT("+0x%x"), filesz)); DPRINTF((TEXT("%s0x%x"),
sz == 0 ? "" : "+",
filesz));
sz += _mem->roundPage(filesz); sz += _mem->roundPage(filesz);
} }
} }