diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-10-21 16:19:02 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2020-10-21 16:19:02 +0200 |
commit | 8814f8142ff914c8413a09fd86332f700532ebe6 (patch) | |
tree | dd94b369d62e9519253989cee91101b109dec162 /edid-decode.cpp | |
parent | 34d94b492a9e422ff4701be67231d58bb92604d8 (diff) |
edid-decode: add commit date to the git SHA
Show the last commit date as well to help check how recent edid-decode
is. Also shorten the SHA to just 12 chars instead of the full SHA.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'edid-decode.cpp')
-rw-r--r-- | edid-decode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/edid-decode.cpp b/edid-decode.cpp index 3b205ed..13d3376 100644 --- a/edid-decode.cpp +++ b/edid-decode.cpp @@ -1136,10 +1136,10 @@ int edid_state::parse_edid() printf("\n----------------\n"); - if (!options[OptSkipSHA]) { #define STR(x) #x #define STRING(x) STR(x) - printf("\nedid-decode SHA: %s\n", STRING(SHA)); + if (!options[OptSkipSHA] && strlen(STRING(SHA))) { + printf("\nedid-decode SHA: %s %s\n", STRING(SHA), STRING(DATE)); } if (options[OptCheck]) { |