From b8461ba2363f62905bf43aaa941156c1edf68617 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 25 Oct 2022 13:39:49 +0800 Subject: [PATCH] Refine print constant string. --- trunk/src/main/srs_main_server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/src/main/srs_main_server.cpp b/trunk/src/main/srs_main_server.cpp index 59497b6a9..66f6c642d 100644 --- a/trunk/src/main/srs_main_server.cpp +++ b/trunk/src/main/srs_main_server.cpp @@ -271,7 +271,7 @@ void show_macro_features() ss << ", stat:" << srs_bool2switch(true); // sc(stream-caster) ss << ", sc:" << srs_bool2switch(true); - srs_trace(ss.str().c_str()); + srs_trace("%s", ss.str().c_str()); } if (true) { @@ -300,7 +300,7 @@ void show_macro_features() << ", writev:" << sysconf(_SC_IOV_MAX) << ", encoding:" << (srs_is_little_endian()? "little-endian":"big-endian") << ", HZ:" << (int)sysconf(_SC_CLK_TCK); - srs_trace(ss.str().c_str()); + srs_trace("%s", ss.str().c_str()); } if (true) { @@ -318,7 +318,7 @@ void show_macro_features() #endif ss << ", default:" << SRS_PERF_MR_ENABLED << ", sleep:" << srsu2msi(SRS_PERF_MR_SLEEP) << "ms"; - srs_trace(ss.str().c_str()); + srs_trace("%s", ss.str().c_str()); } if (true) { @@ -354,7 +354,7 @@ void show_macro_features() ss << "auto(guess by merged write)"; #endif - srs_trace(ss.str().c_str()); + srs_trace("%s", ss.str().c_str()); } // others