mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdump: notes_init: rename some parameters
Rename the parameter `ptr` of `notes_init` to something meaningful. Since it points to the start of the notes segment rename it to `segment_start`. In addition, improve the documentation for the function. Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
52118a8d02
commit
13a1227a02
@@ -240,11 +240,12 @@ static void *nt_vmcoreinfo(void *ptr)
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize notes
|
||||
* Initialize the program header entries for the notes and the related segment
|
||||
* data.
|
||||
*/
|
||||
static void *notes_init(Elf64_Phdr *phdr, void *ptr, u64 notes_offset)
|
||||
static void *notes_init(Elf64_Phdr *phdr, void *segment_start, u64 elf_offset)
|
||||
{
|
||||
void *ptr_start = ptr;
|
||||
void *ptr = segment_start;
|
||||
struct dfi_cpu *cpu;
|
||||
|
||||
ptr = nt_prpsinfo(ptr);
|
||||
@@ -269,8 +270,8 @@ out:
|
||||
ptr = nt_vmcoreinfo(ptr);
|
||||
memset(phdr, 0, sizeof(*phdr));
|
||||
phdr->p_type = PT_NOTE;
|
||||
phdr->p_offset = notes_offset;
|
||||
phdr->p_filesz = PTR_DIFF(ptr, ptr_start);
|
||||
phdr->p_offset = elf_offset;
|
||||
phdr->p_filesz = PTR_DIFF(ptr, segment_start);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user