diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-06 23:26:53 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-06 23:26:53 -0800 |
commit | 8ea34077cefa05972f070215856887a093ca73d1 (patch) | |
tree | 3fd4166253969b0d9ecf65f0a2db5885ef0febaf | |
parent | 9a02cdbe61c10146b5d7ffb85ef3dd5c15bdf784 (diff) | |
download | syslinux.git-8ea34077cefa05972f070215856887a093ca73d1.tar.gz syslinux.git-8ea34077cefa05972f070215856887a093ca73d1.tar.xz syslinux.git-8ea34077cefa05972f070215856887a093ca73d1.zip |
sysdump: be more explicit about what we are doing
Print more information on the console about what is going on. That
can help detect problems if we find a machine which hangs on sysdump.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | com32/sysdump/main.c | 1 | ||||
-rw-r--r-- | com32/sysdump/memory.c | 4 | ||||
-rw-r--r-- | com32/sysdump/pci.c | 2 | ||||
-rw-r--r-- | com32/sysdump/vesa.c | 4 |
4 files changed, 9 insertions, 2 deletions
diff --git a/com32/sysdump/main.c b/com32/sysdump/main.c index 80128160..02575e37 100644 --- a/com32/sysdump/main.c +++ b/com32/sysdump/main.c @@ -32,7 +32,6 @@ __noreturn die(const char *msg) static void dump_all(struct backend *be, const char *argv[], size_t len) { - cpio_init(be, argv, len); dump_memory_map(be); diff --git a/com32/sysdump/memory.c b/com32/sysdump/memory.c index e7108d1e..6552e7f3 100644 --- a/com32/sysdump/memory.c +++ b/com32/sysdump/memory.c @@ -40,8 +40,12 @@ static void dump_memory_range(struct backend *be, const void *where, void dump_memory(struct backend *be) { + printf("Dumping memory... "); + cpio_mkdir(be, "memory"); if (lowmem) dump_memory_range(be, lowmem, zero_addr, lowmem_len); + + printf("done.\n"); } diff --git a/com32/sysdump/pci.c b/com32/sysdump/pci.c index debbbafe..1d687279 100644 --- a/com32/sysdump/pci.c +++ b/com32/sysdump/pci.c @@ -66,5 +66,5 @@ void dump_pci(struct backend *be) } } - printf("Scanning PCI bus... done \n"); + printf("Scanning PCI bus... done. \n"); } diff --git a/com32/sysdump/vesa.c b/com32/sysdump/vesa.c index 3d72093a..9bdc7153 100644 --- a/com32/sysdump/vesa.c +++ b/com32/sysdump/vesa.c @@ -12,6 +12,8 @@ void dump_vesa_tables(struct backend *be) uint16_t mode, *mode_ptr; char modefile[64]; + printf("Scanning VESA BIOS... "); + /* Allocate space in the bounce buffer for these structures */ gip = &((struct vesa_info *)__com32.cs_bounce)->gi; mip = &((struct vesa_info *)__com32.cs_bounce)->mi; @@ -53,4 +55,6 @@ void dump_vesa_tables(struct backend *be) sprintf(modefile, "vesa/mode%04x.bin", mode); cpio_writefile(be, modefile, &mi, sizeof mi); } + + printf("done.\n"); } |