From f09c8324eb648e3a08eb6025423cb28af3890258 Mon Sep 17 00:00:00 2001 From: yagoda Date: Wed, 19 Feb 2020 11:49:50 +0100 Subject: [PATCH] adding success/error macros in scheduler.cc --- srsenb/src/stack/mac/scheduler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srsenb/src/stack/mac/scheduler.cc b/srsenb/src/stack/mac/scheduler.cc index 38921f2c5..4ad2314d8 100644 --- a/srsenb/src/stack/mac/scheduler.cc +++ b/srsenb/src/stack/mac/scheduler.cc @@ -261,7 +261,7 @@ uint32_t sched::get_dl_buffer(uint16_t rnti) uint32_t ret = 0; if (ue_db_access(rnti, [&ret](sched_ue& ue) { ret = ue.get_pending_dl_new_data(); })) { Error("Error calling get_dl_buffer, user not found\n"); - ret = -1; + ret = SRSLTE_ERROR; } return ret; } @@ -269,10 +269,10 @@ uint32_t sched::get_dl_buffer(uint16_t rnti) uint32_t sched::get_ul_buffer(uint16_t rnti) { // TODO: Check if correct use of last_tti - uint32_t ret = 0; + uint32_t ret = SRSLTE_SUCCESS; if (ue_db_access(rnti, [this, &ret](sched_ue& ue) { ret = ue.get_pending_ul_new_data(last_tti); })) { Error("Error calling get_ul_buffer, user not found\n"); - ret = -1; + ret = SRSLTE_ERROR; } return ret; }