summaryrefslogtreecommitdiff
path: root/trace2/tr2_tbuf.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2019-04-15 20:39:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-16 04:37:07 (GMT)
commit08881b9a4c841b77bc2a4a17510ee33b98070b9e (patch)
treeda981a4a5c6ad307bc7dd3d682d3c06f6b03a1e7 /trace2/tr2_tbuf.h
parentbad229aef232256f3fb6e8ed9c09e26ff654399c (diff)
downloadgit-08881b9a4c841b77bc2a4a17510ee33b98070b9e.zip
git-08881b9a4c841b77bc2a4a17510ee33b98070b9e.tar.gz
git-08881b9a4c841b77bc2a4a17510ee33b98070b9e.tar.bz2
trace2: make SIDs more unique
Update SID component construction to use the current UTC datetime and a portion of the SHA1 of the hostname. Use an simplified date/time format to make it easier to use the SID component as a logfile filename. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tbuf.h')
-rw-r--r--trace2/tr2_tbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace2/tr2_tbuf.h b/trace2/tr2_tbuf.h
index 2a1d173..fa853d8 100644
--- a/trace2/tr2_tbuf.h
+++ b/trace2/tr2_tbuf.h
@@ -19,5 +19,6 @@ void tr2_tbuf_local_time(struct tr2_tbuf *tb);
* Fill buffer with formatted UTC datatime string.
*/
void tr2_tbuf_utc_datetime_extended(struct tr2_tbuf *tb);
+void tr2_tbuf_utc_datetime(struct tr2_tbuf *tb);
#endif /* TR2_TBUF_H */