Commit ca091b2f authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

cmd_time: without the uint32_t cast operator, mprintf gives always 0 for uint64_t variable

parent 44cce6cd
......@@ -31,11 +31,11 @@ int cmd_time(const char *args[])
return -EBUSY;
} else if(args[0] && !strcasecmp(args[0], "raw"))
{
mprintf("%d %d\n", sec, nsec);
mprintf("%d %d\n", (uint32_t)sec, nsec);
return 0;
}
mprintf("%s +%d nanoseconds.\n", format_time(sec), nsec); /* fixme: clock freq is not always 125 MHz */
return 0;
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment