diff options
Diffstat (limited to 'com32/sysdump/main.c')
-rw-r--r-- | com32/sysdump/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/sysdump/main.c b/com32/sysdump/main.c index c231c29e..4c58f5f4 100644 --- a/com32/sysdump/main.c +++ b/com32/sysdump/main.c @@ -19,10 +19,11 @@ #include <dprintf.h> #include <console.h> #include <sys/cpu.h> +#include "../../version.h" #include "backend.h" #include "sysdump.h" -const char *program = "sysdump"; +const char program[] = "sysdump"; __noreturn die(const char *msg) { @@ -32,8 +33,12 @@ __noreturn die(const char *msg) static void dump_all(struct backend *be, const char *argv[], size_t len) { + static const char version[] = "SYSDUMP " VERSION_STR " " DATE "\n"; + cpio_init(be, argv, len); + cpio_writefile(be, "sysdump", version, sizeof version); + dump_memory_map(be); dump_memory(be); dump_dmi(be); |