Change in osmo-bsc[master]: bsc_subscr_name: use OTC_SELECT

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/.

neels gerrit-no-reply at lists.osmocom.org
Thu Oct 1 04:11:12 UTC 2020


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/20353 )


Change subject: bsc_subscr_name: use OTC_SELECT
......................................................................

bsc_subscr_name: use OTC_SELECT

Change-Id: I5fd65f67634ec2ae41652e30181b3c87a04856cd
---
M src/osmo-bsc/bsc_subscriber.c
1 file changed, 1 insertion(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/53/20353/1

diff --git a/src/osmo-bsc/bsc_subscriber.c b/src/osmo-bsc/bsc_subscriber.c
index 476203f..4a48298 100644
--- a/src/osmo-bsc/bsc_subscriber.c
+++ b/src/osmo-bsc/bsc_subscriber.c
@@ -37,7 +37,6 @@
 static int bsub_use_cb(struct osmo_use_count_entry *e, int32_t old_use_count, const char *file, int line)
 {
 	struct bsc_subscr *bsub = e->use_count->talloc_object;
-	char buf[128];
 	int32_t total;
 	int level;
 
@@ -55,7 +54,7 @@
 	LOGPSRC(DREF, level, file, line, "%s: %s %s: now used by %s\n",
 		bsc_subscr_name(bsub),
 		(e->count - old_use_count) > 0? "+" : "-", e->use,
-		osmo_use_count_name_buf(buf, sizeof(buf), &bsub->use_count));
+		osmo_use_count_to_str_c(OTC_SELECT, &bsub->use_count));
 
 	if (e->count < 0)
 		return -ERANGE;

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I5fd65f67634ec2ae41652e30181b3c87a04856cd
Gerrit-Change-Number: 20353
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201001/1a7ce22c/attachment.htm>


More information about the gerrit-log mailing list