From 4695f001fece1660d8bb1b3748f50726ddcc100b Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Mon, 17 Aug 2026 06:33:24 +0200 Subject: [PATCH] llama-bench: fix deprecation warnings missing trailing newline (#27179) The log output does not append a newline, so the warning ran into the next line printed on stdout, corrupting the benchmark table header. Signed-off-by: Fathi Boudra --- tools/llama-bench/llama-bench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llama-bench/llama-bench.cpp b/tools/llama-bench/llama-bench.cpp index 7c495afe2..03d59f08d 100644 --- a/tools/llama-bench/llama-bench.cpp +++ b/tools/llama-bench/llama-bench.cpp @@ -846,7 +846,7 @@ static cmd_params parse_cmd_params(int argc, char ** argv) { invalid_param = true; break; } - LOG_WRN("DEPRECATED: -mmp and --mmap are deprecated in favour of --load-mode. Please use --load-mode mmap instead."); + LOG_WRN("DEPRECATED: -mmp and --mmap are deprecated in favour of --load-mode. Please use --load-mode mmap instead.\n"); auto p = string_split(argv[i], split_delim); std::vector modes; @@ -865,7 +865,7 @@ static cmd_params parse_cmd_params(int argc, char ** argv) { invalid_param = true; break; } - LOG_WRN("DEPRECATED: -dio and --direct-io are deprecated in favour of --load-mode. Please use --load-mode dio instead."); + LOG_WRN("DEPRECATED: -dio and --direct-io are deprecated in favour of --load-mode. Please use --load-mode dio instead.\n"); auto p = string_split(argv[i], split_delim); std::vector modes;