asmlinkage int vprintk(const char *fmt, va_list args)
{
...
if (printk_time) {
/* Follow the token with the time */
char tbuf[50], *tp;
unsigned tlen;
unsigned long long t;
unsigned long nanosec_rem;
t = cpu_clock(printk_cpu);
nanosec_rem = do_div(t, 1000000000);
tlen = sprintf(tbuf, "[%5lu.%06lu] ",
(unsigned long) t,
nanosec_rem / 1000);
for (tp = tbuf; tp < tbuf + tlen; tp++)
emit_log_char(*tp);
printed_len += tlen;
}
Thursday, 14 August 2008
Hang on palmt650 first printk
Locks up in kernel/printk.c with time enabled:
Subscribe to:
Comments (Atom)