[syslinux:master] sysdump: be more explicit about what we are doing

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sat Feb 6 23:30:02 PST 2010


Commit-ID:  8ea34077cefa05972f070215856887a093ca73d1
Gitweb:     http://syslinux.zytor.com/commit/8ea34077cefa05972f070215856887a093ca73d1
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sat, 6 Feb 2010 23:26:53 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 6 Feb 2010 23:26:53 -0800

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 at zytor.com>


---
 com32/sysdump/main.c   |    1 -
 com32/sysdump/memory.c |    4 ++++
 com32/sysdump/pci.c    |    2 +-
 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 8012816..02575e3 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 e7108d1..6552e7f 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 debbbaf..1d68727 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 3d72093..9bdc715 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");
 }



More information about the Syslinux-commits mailing list