hdt: Opening console earlier
authorErwan Velu <erwan.velu@free.fr>
Mon, 13 Apr 2009 20:16:54 +0000 (22:16 +0200)
committerErwan Velu <erwan.velu@free.fr>
Mon, 13 Apr 2009 20:16:54 +0000 (22:16 +0200)
Impact: Earlier printf are now possible

Prior to that commit, it was impossible to printf during paramaters
& syslinux checks

com32/hdt/hdt.c

index 7e6fb6f..a2b9b53 100644 (file)
@@ -51,6 +51,8 @@ int main(const int argc, const char *argv[])
   snprintf(version_string, sizeof version_string, "%s %s by %s",
            PRODUCT_NAME,VERSION,AUTHOR);
 
+  console_ansi_raw();
+
   /* Cleaning structures */
   init_hardware(&hardware);
 
@@ -60,7 +62,6 @@ int main(const int argc, const char *argv[])
   /* Detecting parameters */
   detect_parameters(argc, argv, &hardware);
 
-  console_ansi_raw();
   /* Opening the Syslinux console */
 //  openconsole(&dev_stdcon_r, &dev_ansicon_w);