From eb624c929d9da3598d3242e7c6a2fc586469b97b Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 24 May 2020 22:08:10 +0200 Subject: [PATCH] fix: fmt format --- include/util/command.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/util/command.hpp b/include/util/command.hpp index c99df126..1fbb4121 100644 --- a/include/util/command.hpp +++ b/include/util/command.hpp @@ -38,13 +38,13 @@ inline int close(FILE* fp, pid_t pid) { waitpid(pid, &stat, WCONTINUED | WUNTRACED); if (WIFEXITED(stat)) { - spdlog::debug("%s exited with code %d", WEXITSTATUS(stat)); + spdlog::debug("{} exited with code {}", WEXITSTATUS(stat)); } else if (WIFSIGNALED(stat)) { - spdlog::debug("%s killed by %d", WTERMSIG(stat)); + spdlog::debug("{} killed by {}", WTERMSIG(stat)); } else if (WIFSTOPPED(stat)) { - spdlog::debug("%s stopped by %d", WSTOPSIG(stat)); + spdlog::debug("{} stopped by {}", WSTOPSIG(stat)); } else if (WIFCONTINUED(stat)) { - spdlog::debug("%s continued"); + spdlog::debug("{} continued"); } else { break; }