dump: Rename write_elf_loads to write_elf_phdr_loads

Let's make it a bit clearer that we write the program headers of the
PT_LOAD type.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@ibm.linux.com>
Message-Id: <20220811121111.9878-3-frankja@linux.ibm.com>
This commit is contained in:
Janosch Frank 2022-08-11 12:10:55 +00:00 committed by Marc-André Lureau
parent 1af0006ab9
commit afae6056ea

View File

@ -490,7 +490,7 @@ static void get_offset_range(hwaddr phys_addr,
}
}
static void write_elf_loads(DumpState *s, Error **errp)
static void write_elf_phdr_loads(DumpState *s, Error **errp)
{
ERRP_GUARD();
hwaddr offset, filesz;
@ -573,8 +573,8 @@ static void dump_begin(DumpState *s, Error **errp)
return;
}
/* write all PT_LOAD to vmcore */
write_elf_loads(s, errp);
/* write all PT_LOADs to vmcore */
write_elf_phdr_loads(s, errp);
if (*errp) {
return;
}