aboutsummaryrefslogtreecommitdiff
path: root/contrib/elf2dmp/addrspace.c
diff options
context:
space:
mode:
authorViktor Prutyanov <viktor@daynix.com>2023-02-23 00:12:44 +0300
committerPeter Maydell <peter.maydell@linaro.org>2023-03-21 11:54:39 +0000
commit05adc48e1d60ebef57ca78626fbfce895a15664d (patch)
tree4c09b20aa145977a4fe73ff4b1756ae095c824c2 /contrib/elf2dmp/addrspace.c
parent0c88f93788d33795a4c14a0ca999607a6546f8b8 (diff)
contrib/elf2dmp: fix code style
Originally elf2dmp were added with some code style issues, especially in pe.h header, and some were introduced by 2d0fc797faaa73fbc1d30f5f9e90407bf3dd93f0. Fix them now. Signed-off-by: Viktor Prutyanov <viktor@daynix.com> Reviewed-by: Annie Li <annie.li@oracle.com> Message-id: 20230222211246.883679-2-viktor@daynix.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'contrib/elf2dmp/addrspace.c')
-rw-r--r--contrib/elf2dmp/addrspace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/elf2dmp/addrspace.c b/contrib/elf2dmp/addrspace.c
index 53ded17061..0b04cba00e 100644
--- a/contrib/elf2dmp/addrspace.c
+++ b/contrib/elf2dmp/addrspace.c
@@ -11,6 +11,7 @@
static struct pa_block *pa_space_find_block(struct pa_space *ps, uint64_t pa)
{
size_t i;
+
for (i = 0; i < ps->block_nr; i++) {
if (ps->block[i].paddr <= pa &&
pa <= ps->block[i].paddr + ps->block[i].size) {