[coreboot] r3569 - trunk/util/flashrom

Stefan Reinauer stepan at coresystems.de
Sun Sep 7 09:49:00 CEST 2008


svn at coreboot.org wrote:
> Author: stuge
> Date: 2008-09-07 05:14:27 +0200 (Sun, 07 Sep 2008)
> New Revision: 3569
>
> Modified:
>    trunk/util/flashrom/udelay.c
> Log:
> flashrom: Debug print actual time base calculated by myusec_calibrate_delay()
>
> Signed-off-by: Peter Stuge <peter at stuge.se>
> Acked-by: Peter Stuge <peter at stuge.se>
>
>
> Modified: trunk/util/flashrom/udelay.c
> ===================================================================
> --- trunk/util/flashrom/udelay.c	2008-09-05 21:23:02 UTC (rev 3568)
> +++ trunk/util/flashrom/udelay.c	2008-09-07 03:14:27 UTC (rev 3569)
> @@ -55,6 +55,12 @@
>  	// compute one microsecond. That will be count / time
>  	micro = count / timeusec;
>  
> -	printf_debug("%ldM loops per second. ", (unsigned long)micro);
> +	gettimeofday(&start, 0);
> +	myusec_delay(100);
> +	gettimeofday(&end, 0);
> +	timeusec = 1000000 * (end.tv_sec - start.tv_sec) +
> +	    (end.tv_usec - start.tv_usec);
> +	printf_debug("%ldM loops per second, 100 myus = %ld us. ",
> +	    (unsigned long)micro, timeusec);
>  	printf("OK.\n");
>  }
>   

I think that reads really weird. What's myus supposed to be, except an
ancient greek city?

Stefan

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the coreboot mailing list