summaryrefslogtreecommitdiff
path: root/util_lib/include
diff options
context:
space:
mode:
authorLianbo Jiang <lijiang@redhat.com>2019-08-23 20:05:38 +0800
committerSimon Horman <horms@verge.net.au>2019-09-08 13:26:07 +0100
commita7c4cb8e998571cb3dd62e907935a1e052b15d6c (patch)
treee2f2ec782d6939a686e9cb9f8cdd798e15e06bdd /util_lib/include
parent14ad054e7baa788a6629385ffe5e0f1996b7de02 (diff)
Cleanup: move it back from util_lib/elf_info.c
Some code related to vmcore-dmesg.c is put into the util_lib, which is not very reasonable, so lets move it back and tidy up those code. In addition, that will also help to limit the size of vmcore-dmesg.txt in vmcore-dmesg.c instead of elf_info.c. Signed-off-by: Lianbo Jiang <lijiang@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'util_lib/include')
-rw-r--r--util_lib/include/elf_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util_lib/include/elf_info.h b/util_lib/include/elf_info.h
index c328a1b..4bc9279 100644
--- a/util_lib/include/elf_info.h
+++ b/util_lib/include/elf_info.h
@@ -30,6 +30,6 @@ int get_pt_load(int idx,
unsigned long long *virt_end);
int read_phys_offset_elf_kcore(int fd, unsigned long *phys_off);
int read_elf(int fd);
-int read_elf_vmcore(int fd);
+void dump_dmesg(int fd, void (*handler)(char*, unsigned int));
#endif /* ELF_INFO_H */