Change in osmo-trx[master]: main: do not log SIMD info messages to stdout, use stderr

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Oct 29 15:23:49 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/20965 )


Change subject: main: do not log SIMD info messages to stdout, use stderr
......................................................................

main: do not log SIMD info messages to stdout, use stderr

Otherwise they end up in the automatically generated XML VTY reference.

Change-Id: I8e0fd728d406e2452c9c0ddad5bce5f6b17fab42
Related: SYS#4937, SYS#4910
---
M Transceiver52M/osmo-trx.cpp
1 file changed, 9 insertions(+), 9 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/65/20965/1

diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp
index ba1c740..316cfc9 100644
--- a/Transceiver52M/osmo-trx.cpp
+++ b/Transceiver52M/osmo-trx.cpp
@@ -586,32 +586,32 @@
 	g_trx_ctx = vty_trx_ctx_alloc(tall_trx_ctx);
 
 #ifdef HAVE_SSE3
-	printf("Info: SSE3 support compiled in");
+	fprintf(stderr, "Info: SSE3 support compiled in");
 #ifdef HAVE___BUILTIN_CPU_SUPPORTS
 	if (__builtin_cpu_supports("sse3"))
-		printf(" and supported by CPU\n");
+		fprintf(stderr, " and supported by CPU\n");
 	else
-		printf(", but not supported by CPU\n");
+		fprintf(stderr, ", but not supported by CPU\n");
 #else
-	printf(", but runtime SIMD detection disabled\n");
+	fprintf(stderr, ", but runtime SIMD detection disabled\n");
 #endif
 #endif
 
 #ifdef HAVE_SSE4_1
-	printf("Info: SSE4.1 support compiled in");
+	fprintf(stderr, "Info: SSE4.1 support compiled in");
 #ifdef HAVE___BUILTIN_CPU_SUPPORTS
 	if (__builtin_cpu_supports("sse4.1"))
-		printf(" and supported by CPU\n");
+		fprintf(stderr, " and supported by CPU\n");
 	else
-		printf(", but not supported by CPU\n");
+		fprintf(stderr, ", but not supported by CPU\n");
 #else
-	printf(", but runtime SIMD detection disabled\n");
+	fprintf(stderr, ", but runtime SIMD detection disabled\n");
 #endif
 #endif
 
 #ifndef HAVE_ATOMIC_OPS
 #pragma message ("Built without atomic operation support. Using Mutex, it may affect performance!")
-	printf("Built without atomic operation support. Using Mutex, it may affect performance!\n");
+	fprintf(stderr, "Built without atomic operation support. Using Mutex, it may affect performance!\n");
 #endif
 
 	convolve_init();

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/20965
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I8e0fd728d406e2452c9c0ddad5bce5f6b17fab42
Gerrit-Change-Number: 20965
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201029/4ed1a852/attachment.htm>


More information about the gerrit-log mailing list