diff options
| author | nrush <[email protected]> | 2021-10-10 07:41:03 +0000 |
|---|---|---|
| committer | nrush <[email protected]> | 2021-10-11 15:25:26 +0000 |
| commit | 861c579c600d143085c45b0a7228b1b01eae2fec (patch) | |
| tree | f214ce7a869a29dedc78a9a36220d9128b3054b4 | |
| parent | ceba6ce49d6deae53e0a742bb633c213c97374d9 (diff) | |
[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]>
| -rw-r--r-- | src/kservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c index 91872492fb..a256bdcf86 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -546,8 +546,8 @@ void rt_show_version(void) { rt_kprintf("\n \\ | /\n"); rt_kprintf("- RT - Thread Operating System\n"); - rt_kprintf(" / | \\ %d.%d.%d build %s\n", - RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__); + rt_kprintf(" / | \\ %d.%d.%d build %s %s\n", + RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__, __TIME__); rt_kprintf(" 2006 - 2021 Copyright by rt-thread team\n"); } RTM_EXPORT(rt_show_version); |
