trace2: add a public function for getting the SID
Add a public wrapper, trace2_session_id(), around tr2_sid_get(), which is intended to be private trace2 implementation. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
81bd549010
commit
e97e1cf464
5
trace2.c
5
trace2.c
@ -792,3 +792,8 @@ void trace2_printf(const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char *trace2_session_id(void)
|
||||||
|
{
|
||||||
|
return tr2_sid_get();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user