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/12964 Change subject: oc2g: Cleanup of get_hwversion_desc ...................................................................... oc2g: Cleanup of get_hwversion_desc Remove unused variables, wrong return type values, etc. Change-Id: I5565b904c72a9ac1775818416f05c64722d366b2 --- M src/osmo-bts-oc2g/misc/oc2gbts_bid.c 1 file changed, 2 insertions(+), 8 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/64/12964/1 diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_bid.c b/src/osmo-bts-oc2g/misc/oc2gbts_bid.c index 6eaa9c6..6a46ca8 100644 --- a/src/osmo-bts-oc2g/misc/oc2gbts_bid.c +++ b/src/osmo-bts-oc2g/misc/oc2gbts_bid.c @@ -106,7 +106,6 @@ const char* get_hwversion_desc() { - int rev; int model; size_t len; static char model_name[64] = {0, }; @@ -114,14 +113,9 @@ char rev_maj = 0, rev_min = 0; - int rc = 0; oc2gbts_rev_get(&rev_maj, &rev_min); - if (rc < 0) - return rc; - if (rev >= 0) { - len += snprintf(model_name + len, sizeof(model_name) - len, - " Rev %d.%d", (uint8_t)rev_maj, (uint8_t)rev_min); - } + len += snprintf(model_name + len, sizeof(model_name) - len, + " Rev %" PRIu8 ".%" PRIu8, (uint8_t)rev_maj, (uint8_t)rev_min); model = oc2gbts_model_get(); if (model >= 0) { -- To view, visit https://gerrit.osmocom.org/12964 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I5565b904c72a9ac1775818416f05c64722d366b2 Gerrit-Change-Number: 12964 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/20190219/cc126b1b/attachment.htm>