Skip to content

Commit

Permalink
minor: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Jul 3, 2024
1 parent 4aab8ae commit 95bd8a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/jalog/AsyncLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AsyncLoggingImpl final : public xec::ExecutorBase
}

// pack raw pointers along with the sinks to skip
// the control block hop of shared_ptr::->
// a potential control block hop of shared_ptr::->
struct SinkData
{
SinkData(SinkPtr p) : ptr(std::move(p)), sink(ptr.get()) {}
Expand Down
2 changes: 2 additions & 0 deletions code/jalog/Printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ namespace jalog
void VPrintfUnchecked(Scope& scope, Level lvl, const char* format, va_list args)
{
va_list acopy;
// we need to copy the va_list, because if our optimistic fit below doesn't fit, we would need to call
// vsnprintf again (and the first call would've consumed the original va_list)
va_copy(acopy, args);

// optimistically try to fit in a small buffer
Expand Down

0 comments on commit 95bd8a3

Please sign in to comment.