From a19d68710c56602a51a36dc3552563cf65010537 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Tue, 11 Jan 2022 10:30:22 +0100 Subject: [PATCH] Fix successful related typos --- lib/include/srsran/interfaces/enb_mac_interfaces.h | 4 ++-- lib/include/srsran/phy/common/phy_common.h | 4 ++-- lib/include/srsran/phy/fec/softbuffer.h | 6 ++++-- lib/include/srsran/phy/phch/pucch_proc.h | 2 +- lib/src/pdcp/pdcp_entity_lte.cc | 2 +- lib/src/phy/enb/enb_ul.c | 2 +- lib/src/phy/rf/rf_uhd_imp.cc | 2 +- srsenb/src/stack/mac/mac.cc | 2 +- srsenb/src/stack/s1ap/s1ap.cc | 2 +- 9 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lib/include/srsran/interfaces/enb_mac_interfaces.h b/lib/include/srsran/interfaces/enb_mac_interfaces.h index 17ef85fac..802312610 100644 --- a/lib/include/srsran/interfaces/enb_mac_interfaces.h +++ b/lib/include/srsran/interfaces/enb_mac_interfaces.h @@ -182,7 +182,7 @@ public: * @param rnti the UE identifier in the eNb * @param cc_idx the eNb Cell/Carrier identifier * @param nof_bytes the number of grants carrierd by the PUSCH message - * @param crc_res the CRC check, set to true if the message was decoded succesfully + * @param crc_res the CRC check, set to true if the message was decoded successfully * @return SRSRAN_SUCCESS if no error occurs, SRSRAN_ERROR* if an error occurs */ virtual int crc_info(uint32_t tti, uint16_t rnti, uint32_t cc_idx, uint32_t nof_bytes, bool crc_res) = 0; @@ -194,7 +194,7 @@ public: * @param rnti the UE identifier in the eNb * @param enb_cc_idx the eNb Cell/Carrier identifier * @param nof_bytes the number of grants carrierd by the PUSCH message - * @param crc_res the CRC check, set to true if the message was decoded succesfully + * @param crc_res the CRC check, set to true if the message was decoded successfully * @param ul_nof_prbs Number of PRBs allocated to grant * @return SRSRAN_SUCCESS if no error occurs, SRSRAN_ERROR* if an error occurs */ diff --git a/lib/include/srsran/phy/common/phy_common.h b/lib/include/srsran/phy/common/phy_common.h index c3c5b8f41..dd4908529 100644 --- a/lib/include/srsran/phy/common/phy_common.h +++ b/lib/include/srsran/phy/common/phy_common.h @@ -498,7 +498,7 @@ SRSRAN_API char* srsran_nbiot_mode_string(srsran_nbiot_mode_t mode); * Returns a constant string pointer with the ACK/NACK feedback mode * * @param ack_nack_feedback_mode Mode - * @return Returns constant pointer with the text of the mode if succesful, `error` otherwise + * @return Returns constant pointer with the text of the mode if successful, `error` otherwise */ SRSRAN_API const char* srsran_ack_nack_feedback_mode_string(srsran_ack_nack_feedback_mode_t ack_nack_feedback_mode); @@ -506,7 +506,7 @@ SRSRAN_API const char* srsran_ack_nack_feedback_mode_string(srsran_ack_nack_feed * Returns a constant string pointer with the ACK/NACK feedback mode * * @param ack_nack_feedback_mode Mode - * @return Returns constant pointer with the text of the mode if succesful, `error` otherwise + * @return Returns constant pointer with the text of the mode if successful, `error` otherwise */ SRSRAN_API srsran_ack_nack_feedback_mode_t srsran_string_ack_nack_feedback_mode(const char* str); diff --git a/lib/include/srsran/phy/fec/softbuffer.h b/lib/include/srsran/phy/fec/softbuffer.h index 408d58c91..9bb43029c 100644 --- a/lib/include/srsran/phy/fec/softbuffer.h +++ b/lib/include/srsran/phy/fec/softbuffer.h @@ -53,7 +53,8 @@ SRSRAN_API int srsran_softbuffer_rx_init(srsran_softbuffer_rx_t* q, uint32_t nof * @param q The Rx soft-buffer pointer * @param max_cb The maximum number of code blocks to allocate * @param max_cb_size The code block size to allocate - * @return It returns SRSRAN_SUCCESS if it allocates the soft-buffer succesfully, otherwise it returns SRSRAN_ERROR code + * @return It returns SRSRAN_SUCCESS if it allocates the soft-buffer successfully, otherwise it returns SRSRAN_ERROR + * code */ SRSRAN_API int srsran_softbuffer_rx_init_guru(srsran_softbuffer_rx_t* q, uint32_t max_cb, uint32_t max_cb_size); @@ -81,7 +82,8 @@ SRSRAN_API int srsran_softbuffer_tx_init(srsran_softbuffer_tx_t* q, uint32_t nof * @param q The Tx soft-buffer pointer * @param max_cb The maximum number of code blocks to allocate * @param max_cb_size The code block size to allocate - * @return It returns SRSRAN_SUCCESS if it allocates the soft-buffer succesfully, otherwise it returns SRSRAN_ERROR code + * @return It returns SRSRAN_SUCCESS if it allocates the soft-buffer successfully, otherwise it returns SRSRAN_ERROR + * code */ SRSRAN_API int srsran_softbuffer_tx_init_guru(srsran_softbuffer_tx_t* q, uint32_t max_cb, uint32_t max_cb_size); diff --git a/lib/include/srsran/phy/phch/pucch_proc.h b/lib/include/srsran/phy/phch/pucch_proc.h index f203241a1..b81b20203 100644 --- a/lib/include/srsran/phy/phch/pucch_proc.h +++ b/lib/include/srsran/phy/phch/pucch_proc.h @@ -78,7 +78,7 @@ SRSRAN_API uint32_t srsran_pucch_proc_get_npucch(const srsran_cell_t* cell, * @param uci_cfg uplink control information configuration * @param j selected channel * @param b received bits - * @return Returns SRSRAN_SUCCESS if it can decode it succesfully, SRSRAN_ERROR code otherwise + * @return Returns SRSRAN_SUCCESS if it can decode it successfully, SRSRAN_ERROR code otherwise */ SRSRAN_API int srsran_pucch_cs_get_ack(const srsran_pucch_cfg_t* cfg, const srsran_uci_cfg_t* uci_cfg, diff --git a/lib/src/pdcp/pdcp_entity_lte.cc b/lib/src/pdcp/pdcp_entity_lte.cc index 1a3a13811..4e55ca3ca 100644 --- a/lib/src/pdcp/pdcp_entity_lte.cc +++ b/lib/src/pdcp/pdcp_entity_lte.cc @@ -164,7 +164,7 @@ void pdcp_entity_lte::write_sdu(unique_byte_buffer_t sdu, int upper_sn) // If the bearer is mapped to RLC AM, save TX_COUNT and a copy of the PDU. // This will be used for reestablishment, where unack'ed PDUs will be re-transmitted. // PDUs will be removed from the queue, either when the lower layers will report - // a succesfull transmission or when the discard timer expires. + // a successfull transmission or when the discard timer expires. // Status report will also use this queue, to know the First Missing SDU (FMS). if (!rlc->rb_is_um(lcid) and is_drb()) { if (not store_sdu(used_sn, sdu)) { diff --git a/lib/src/phy/enb/enb_ul.c b/lib/src/phy/enb/enb_ul.c index c9e7b4bc1..605fe7295 100644 --- a/lib/src/phy/enb/enb_ul.c +++ b/lib/src/phy/enb/enb_ul.c @@ -205,7 +205,7 @@ static int get_pucch(srsran_enb_ul_t* q, srsran_ul_sf_cfg_t* ul_sf, srsran_pucch // Compares correlation value, it stores the PUCCH result with the greatest correlation if (i == 0 || pucch_res.correlation > res->correlation) { - // Copy measurements only if PUCCH was decoded succesfully + // Copy measurements only if PUCCH was decoded successfully if (cfg->meas_ta_en) { pucch_res.ta_valid = !(isnan(q->chest_res.ta_us) || isinf(q->chest_res.ta_us)); pucch_res.ta_us = q->chest_res.ta_us; diff --git a/lib/src/phy/rf/rf_uhd_imp.cc b/lib/src/phy/rf/rf_uhd_imp.cc index b8ddb09dc..ac82113b1 100644 --- a/lib/src/phy/rf/rf_uhd_imp.cc +++ b/lib/src/phy/rf/rf_uhd_imp.cc @@ -818,7 +818,7 @@ static int uhd_init(rf_uhd_handler_t* handler, char* args, uint32_t nof_channels if (clock_src != "internal") { // blocks until clock source is locked int error = wait_sensor_locked(handler, sensor_name, true, 300, is_locked); - // Print Not lock error if the return was succesful, wait_sensor_locked prints the error before returning + // Print Not lock error if the return was successful, wait_sensor_locked prints the error before returning if (not is_locked and error == SRSRAN_SUCCESS) { ERROR( "Could not lock reference clock source. Sensor: %s=%s\n", sensor_name.c_str(), is_locked ? "true" : "false"); diff --git a/srsenb/src/stack/mac/mac.cc b/srsenb/src/stack/mac/mac.cc index 224dd0343..5890bd985 100644 --- a/srsenb/src/stack/mac/mac.cc +++ b/srsenb/src/stack/mac/mac.cc @@ -695,7 +695,7 @@ int mac::get_dl_sched(uint32_t tti_tx_dl, dl_sched_list_t& dl_sched_res_list) tb_count++; } - // Count transmission if at least one TB has succesfully added + // Count transmission if at least one TB has successfully added if (tb_count > 0) { n++; } diff --git a/srsenb/src/stack/s1ap/s1ap.cc b/srsenb/src/stack/s1ap/s1ap.cc index 933ef6d9e..27dc1ecc4 100644 --- a/srsenb/src/stack/s1ap/s1ap.cc +++ b/srsenb/src/stack/s1ap/s1ap.cc @@ -1921,7 +1921,7 @@ bool s1ap::sctp_send_s1ap_pdu(const asn1::s1ap::s1ap_pdu_c& tx_pdu, uint32_t rnt return false; } - // Reset the state if it is a successful or unsucessfull message + // Reset the state if it is a successful or unsuccessfull message if (tx_pdu.type() == s1ap_pdu_c::types_opts::successful_outcome || tx_pdu.type() == s1ap_pdu_c::types_opts::unsuccessful_outcome) { if (rnti != SRSRAN_INVALID_RNTI) {