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/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/12087 Change subject: osmo-trx: Change some lines to use libosmocore logging instead of cout ...................................................................... osmo-trx: Change some lines to use libosmocore logging instead of cout Change-Id: I66e3c37014ba12cd002e5b678bc0a6026f5dfc7e --- M Transceiver52M/osmo-trx.cpp 1 file changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/87/12087/1 diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp index b6b676e..2b69da4 100644 --- a/Transceiver52M/osmo-trx.cpp +++ b/Transceiver52M/osmo-trx.cpp @@ -398,7 +398,7 @@ int rc; memset(¶m, 0, sizeof(param)); param.sched_priority = prio; - printf("Setting SCHED_RR priority(%d)\n", param.sched_priority); + LOG(INFO) << "Setting SCHED_RR priority " << param.sched_priority; rc = sched_setscheduler(getpid(), SCHED_RR, ¶m); if (rc != 0) { LOG(ERROR) << "Config: Setting SCHED_RR failed"; @@ -441,12 +441,12 @@ } ost << std::endl; - std::cout << ost << std::endl; + LOG(INFO) << ost << std::endl; } static void trx_stop() { - std::cout << "Shutting down transceiver..." << std::endl; + LOG(NOTICE) << "Shutting down transceiver..." << std::endl; delete transceiver; delete radio; @@ -489,7 +489,7 @@ goto shutdown; chans = transceiver->numChans(); - std::cout << "-- Transceiver active with " + LOG(NOTICE) << "-- Transceiver active with " << chans << " channel(s)" << std::endl; return 0; @@ -564,7 +564,7 @@ g_ctrlh = ctrl_interface_setup(NULL, OSMO_CTRL_PORT_TRX, NULL); if (!g_ctrlh) { - fprintf(stderr, "Failed to create CTRL interface.\n"); + LOG(ERROR) << "Failed to create CTRL interface.\n"; exit(1); } -- To view, visit https://gerrit.osmocom.org/12087 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I66e3c37014ba12cd002e5b678bc0a6026f5dfc7e Gerrit-Change-Number: 12087 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181203/2b22ecc8/attachment.htm>