Author: hailfinger
Date: Fri Apr  9 02:02:38 2010
New Revision: 992
URL: http://flashrom.org/trac/coreboot/changeset/992

Log:
Reinitialize the delay loop upon recalibration.
Fix an unescaped % in a format specifier.

Signed-off-by: Urja Rannikko <[email protected]>
Acked-by: Carl-Daniel Hailfinger <[email protected]>

Modified:
   trunk/udelay.c

Modified: trunk/udelay.c
==============================================================================
--- trunk/udelay.c      Sat Apr  3 12:27:08 2010        (r991)
+++ trunk/udelay.c      Fri Apr  9 02:02:38 2010        (r992)
@@ -66,6 +66,7 @@
        printf("Calibrating delay loop... ");
 
 recalibrate:
+       count = 1000;
        while (1) {
                timeusec = measure_delay(count);
                if (timeusec > 1000000 / 4)
@@ -93,7 +94,7 @@
                 */
                for (i = 0; i < 4; i++) {
                        if (measure_delay(100) < 90) {
-                               msg_pdbg("delay more than 10% too short, "
+                               msg_pdbg("delay more than 10%% too short, "
                                         "recalculating... ");
                                goto recalibrate;
                        }

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to