Skip to content

Commit 9b29c58

Browse files
committed
Fix linting
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 4aca78b commit 9b29c58

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/stirling/utils/linux_headers.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ Status LinkHostLinuxHeadersKernel(const std::filesystem::path& lib_modules_dir)
214214
const auto host_path = system::Config::GetInstance().ToHostPath(lib_modules_dir);
215215
LOG(INFO) << absl::Substitute("Looking for host Linux headers at $0.", host_path.string());
216216

217-
PX_ASSIGN_OR_RETURN(const auto resolved_host_path, system::ResolvePossibleSymlinkToHostPath(host_path));
217+
PX_ASSIGN_OR_RETURN(const auto resolved_host_path,
218+
system::ResolvePossibleSymlinkToHostPath(host_path));
218219
PX_RETURN_IF_ERROR(fs::CreateSymlinkIfNotExists(resolved_host_path, lib_modules_dir));
219220
LOG(INFO) << absl::Substitute("Linked host headers at $0 to symlink in pem namespace at $1.",
220221
resolved_host_path.string(), lib_modules_dir.string());

src/vizier/services/agent/kelvin/kelvin_main.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ int main(int argc, char** argv) {
9191
LOG(INFO) << absl::Substitute("Pixie Kelvin. Version: $0, id: $1, kernel: $2",
9292
px::VersionInfo::VersionString(), agent_id.str(),
9393
kernel_version.ToString());
94-
auto manager =
95-
KelvinManager::Create(agent_id, FLAGS_pod_name, FLAGS_host_ip, addr, FLAGS_rpc_port,
96-
FLAGS_nats_url, mds_addr, kernel_version, /* kernel_headers_installed */ false)
94+
auto manager = KelvinManager::Create(agent_id, FLAGS_pod_name, FLAGS_host_ip, addr,
95+
FLAGS_rpc_port, FLAGS_nats_url, mds_addr, kernel_version,
96+
/* kernel_headers_installed */ false)
9797

98-
TerminationHandler::set_manager(manager.get());
98+
TerminationHandler::set_manager(manager.get());
9999

100100
PX_CHECK_OK(manager->Run());
101101
PX_CHECK_OK(manager->Stop(std::chrono::seconds{1}));

src/vizier/services/agent/pem/pem_main.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ int main(int argc, char** argv) {
7575
auto kernel_headers_installed = false;
7676
auto uname = px::system::GetUname();
7777
if (uname.ok()) {
78-
const auto host_path = px::system::Config::GetInstance().ToHostPath(absl::Substitute("$0/$1/$2", kLinuxHeadersPath, uname.ConsumeValueOrDie(), "build"));
78+
const auto host_path = px::system::Config::GetInstance().ToHostPath(
79+
absl::Substitute("$0/$1/$2", kLinuxHeadersPath, uname.ConsumeValueOrDie(), "build"));
7980

8081
const auto resolved_host_path = px::system::ResolvePossibleSymlinkToHostPath(host_path);
8182
kernel_headers_installed = resolved_host_path.ok();

0 commit comments

Comments
 (0)