mirror of
https://github.com/crash-utility/crash
synced 2025-02-21 16:06:49 +00:00
log: add warning to help text to inform the inaccuracy of -T option
The timestamps of the "log -T" option are inaccurate because they are from local_clock(), which returns the raw counter in the local CPU and it's different from the elapsed wall time. The dmesg command, which the "log -T" option imitates, has a similar behavior in nature and a warning in its help text. Let's add a warning also to the crash's help text to inform the inaccuracy for now. Link: https://listman.redhat.com/archives/crash-utility/2021-September/msg00044.html Reported-by: Martin Moore <martin.moore@hpe.com> Signed-off-by: Kazuhito Hagio <k-hagio-ab@nec.com>
This commit is contained in:
parent
b0dd73d236
commit
6bc104059b
2
help.c
2
help.c
@ -3893,6 +3893,8 @@ char *help_log[] = {
|
||||
" record format, where the timestamp is contained in each log entry's header.",
|
||||
" ",
|
||||
" -T Display the message text with human readable timestamp.",
|
||||
" (Be aware that the timestamp could be inaccurate! The timestamp is",
|
||||
" from local_clock(), which is different from the elapsed wall time.)",
|
||||
" -t Display the message text without the timestamp; only applicable to the",
|
||||
" variable-length record format.",
|
||||
" -d Display the dictionary of key/value pair properties that are optionally",
|
||||
|
Loading…
Reference in New Issue
Block a user