Skip to content

Commit 861c579

Browse files
committed
[Kernel] Add build time to the boot printing
When the firmware is built many times in a day, we can not distinguish them by current boot printing for the lack of compile time. So, it is necessary to add __TIME__ to rt_show_version(). Signed-off-by: nrush <[email protected]>
1 parent ceba6ce commit 861c579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kservice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ void rt_show_version(void)
546546
{
547547
rt_kprintf("\n \\ | /\n");
548548
rt_kprintf("- RT - Thread Operating System\n");
549-
rt_kprintf(" / | \\ %d.%d.%d build %s\n",
550-
RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__);
549+
rt_kprintf(" / | \\ %d.%d.%d build %s %s\n",
550+
RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__, __TIME__);
551551
rt_kprintf(" 2006 - 2021 Copyright by rt-thread team\n");
552552
}
553553
RTM_EXPORT(rt_show_version);

0 commit comments

Comments
 (0)