The local variable `smp` is used only in the two immediately following
statements. Inline the fmt::format() call into emplace_back() and pass
reactor_num directly to the logger.
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
" or crimson_cpu_num must be set");
ceph_abort();
}
- std::string smp = fmt::format("{}", reactor_num);
ret.early_args.emplace_back("--smp");
- ret.early_args.emplace_back(smp);
+ ret.early_args.emplace_back(fmt::format("{}", reactor_num));
ret.early_args.emplace_back("--thread-affinity");
ret.early_args.emplace_back("0");
logger().info("get_early_config: set --thread-affinity 0 --smp {}",
- smp);
+ reactor_num);
}
} else {