From b9538bf8853b394d37643a1490bf35b6e979f673 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 25 Nov 2020 20:14:21 +0900 Subject: [PATCH] binfmt/libnxflat/libnxflat_load.c: Appease nxstyle --- binfmt/libnxflat/libnxflat_load.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/binfmt/libnxflat/libnxflat_load.c b/binfmt/libnxflat/libnxflat_load.c index 30c63af582..26d8235ba4 100644 --- a/binfmt/libnxflat/libnxflat_load.c +++ b/binfmt/libnxflat/libnxflat_load.c @@ -100,9 +100,9 @@ int nxflat_load(struct nxflat_loadinfo_s *loadinfo) /* Calculate the extra space we need to allocate. This extra space will be * the size of the BSS section. This extra space will also be used - * temporarily to hold relocation information. So the allocated size of this - * region will either be the size of .data + size of.bss section OR, the - * size of .data + the relocation entries, whichever is larger + * temporarily to hold relocation information. So the allocated size of + * this region will either be the size of .data + size of.bss section OR, + * the size of .data + the relocation entries, whichever is larger * * This is the amount of memory that we have to have to hold the * relocations. @@ -142,19 +142,21 @@ int nxflat_load(struct nxflat_loadinfo_s *loadinfo) */ /* The following call will give as a pointer to the mapped file ISpace. - * This may be in ROM, RAM, Flash, ... We don't really care where the memory - * resides as long as it is fully initialized and ready to execute. + * This may be in ROM, RAM, Flash, ... We don't really care where the + * memory resides as long as it is fully initialized and ready to execute. */ loadinfo->ispace = (uint32_t)mmap(NULL, loadinfo->isize, PROT_READ, - MAP_SHARED | MAP_FILE, loadinfo->filfd, 0); + MAP_SHARED | MAP_FILE, loadinfo->filfd, + 0); if (loadinfo->ispace == (uint32_t)MAP_FAILED) { berr("Failed to map NXFLAT ISpace: %d\n", errno); return -errno; } - binfo("Mapped ISpace (%d bytes) at %08x\n", loadinfo->isize, loadinfo->ispace); + binfo("Mapped ISpace (%d bytes) at %08x\n", + loadinfo->isize, loadinfo->ispace); /* The following call allocate D-Space memory and will provide a pointer * to the allocated (but still uninitialized) D-Space memory.