Even better way to do the "kernel version string" pointer stuff
authorhpa <hpa>
Wed, 2 Jan 2002 08:03:21 +0000 (08:03 +0000)
committerhpa <hpa>
Wed, 2 Jan 2002 08:03:21 +0000 (08:03 +0000)
memdisk/setup.c
memdisk/version.h [new file with mode: 0644]

index 5a6faa1..98a3c96 100644 (file)
@@ -18,8 +18,9 @@
 
 /* A pointer to this is stored in the header */
 const char memdisk_version[] =
-"MEMDISK " VERSION " " DATE
-"  Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin";
+"MEMDISK " VERSION " " DATE;
+const char copyright[] = 
+"Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin";
 
 extern const char _binary_memdisk_bin_start[], _binary_memdisk_bin_end[];
 extern const char _binary_memdisk_bin_size[]; /* Weird, I know */
@@ -441,7 +442,7 @@ uint32_t setup(void)
   int total_size;
 
   /* Show signs of life */
-  printf("%s\n", memdisk_version);
+  printf("%s  %s\n", memdisk_version, copyright);
 
   if ( !shdr->ramdisk_image || !shdr->ramdisk_size ) {
     puts("MEMDISK: No ramdisk image specified!\n");
diff --git a/memdisk/version.h b/memdisk/version.h
new file mode 100644 (file)
index 0000000..f9e645a
--- /dev/null
@@ -0,0 +1,26 @@
+#ident "$Id$"
+/* ----------------------------------------------------------------------- *
+ *   
+ *   Copyright 2002 H. Peter Anvin - All Rights Reserved
+ *
+ *   This program is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
+ *   Bostom MA 02111-1307, USA; either version 2 of the License, or
+ *   (at your option) any later version; incorporated herein by reference.
+ *
+ * ----------------------------------------------------------------------- */
+
+/*
+ * version.h
+ *
+ * MEMDISK version data
+ */
+
+#ifndef MEMDISK_VERSION_H
+#define MEMDISK_VERSION_H
+
+#define FIRSTYEAR "2001"
+#define COPYYEAR  "2002"
+
+#endif