[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] rt_printk long long output
Norm Dresner (ndrez@att.net) wrote:
> 1. Don't you have to cast the results of the division to int (from long
> long) before this will work, i.e.
> rtl_printf( "%d%09d" , (int)(t/100000...... ); ?
> 2. I also sent a code snippet for a function to format long-long in %16X.
Yes and yes.
Thanks!
Michael.
>
>
> Norm
>
> At 12:13 AM 8/3/2000 +0400, Michael Barabanov wrote:
> >t = gethrtime();
> >rtl_printf("%d%09d", t / 1000000000, t % 1000000000);
> >
> >Michael.