aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-08-18 09:41:55 +0300
committerbabenko <babenko@yandex-team.com>2024-08-18 09:53:50 +0300
commitf70011464d75aca9b6fac6bf51b3cf1b8060a25b (patch)
treefea50be4218bb3ee9d5f6a8bf18a006d20a35e73
parent69340f4614e853b9319df4b454ab7497711ee3cd (diff)
downloadydb-f70011464d75aca9b6fac6bf51b3cf1b8060a25b.tar.gz
%d -> %v
364336e60306fcbd143a1652ba234cb9d3ece8f6
-rw-r--r--yt/yt/core/misc/proc.cpp2
-rw-r--r--yt/yt/library/process/process.cpp4
-rw-r--r--yt/yt/library/tracing/jaeger/tracer.cpp2
3 files changed, 5 insertions, 3 deletions
diff --git a/yt/yt/core/misc/proc.cpp b/yt/yt/core/misc/proc.cpp
index b351396aae..95e8a85ea5 100644
--- a/yt/yt/core/misc/proc.cpp
+++ b/yt/yt/core/misc/proc.cpp
@@ -1199,7 +1199,7 @@ void SendSignal(const std::vector<int>& pids, const TString& signalName)
auto sig = FindSignalIdBySignalName(signalName);
for (int pid : pids) {
if (kill(pid, *sig) != 0 && errno != ESRCH) {
- THROW_ERROR_EXCEPTION("Unable to kill process %d", pid)
+ THROW_ERROR_EXCEPTION("Unable to kill process %v", pid)
<< TError::FromSystem();
}
}
diff --git a/yt/yt/library/process/process.cpp b/yt/yt/library/process/process.cpp
index e786ae6265..498503d857 100644
--- a/yt/yt/library/process/process.cpp
+++ b/yt/yt/library/process/process.cpp
@@ -921,7 +921,9 @@ void TSimpleProcess::AsyncPeriodicTryWait()
Finished_ = true;
auto error = ProcessInfoToError(processInfo);
- YT_LOG_DEBUG("Process finished (Pid: %v, MajFaults: %d, Error: %v)", ProcessId_, rusage.ru_majflt, error);
+ YT_LOG_DEBUG(error, "Process finished (Pid: %v, MajorFaults: %v)",
+ ProcessId_,
+ rusage.ru_majflt);
FinishedPromise_.Set(error);
#else
diff --git a/yt/yt/library/tracing/jaeger/tracer.cpp b/yt/yt/library/tracing/jaeger/tracer.cpp
index 477cc69ad4..23accc377d 100644
--- a/yt/yt/library/tracing/jaeger/tracer.cpp
+++ b/yt/yt/library/tracing/jaeger/tracer.cpp
@@ -200,7 +200,7 @@ void ToProto(NProto::Span* proto, const TTraceContextPtr& traceContext)
for (const auto& traceId : traceContext->GetAsyncChildren()) {
auto* tag = proto->add_tags();
- tag->set_key(Format("yt.async_trace_id.%d", i++));
+ tag->set_key(Format("yt.async_trace_id.%v", i++));
tag->set_v_str(ToString(traceId));
}