ue,proc_ra: fix state to str converter

this array wasn't updated after the state enum has been updated
master
Andre Puschmann 3 years ago
parent 70eaec21e2
commit 941a032ea1

@ -23,13 +23,11 @@
namespace srsue { namespace srsue {
const char* state_str[] = {"RA: INIT: ", const char* state_str[] = {"RA: IDLE: ",
"RA: PDCCH: ", "RA: PDCCH: ",
"RA: Rx: ", "RA: Rx: ",
"RA: Backoff: ", "RA: Backoff: ",
"RA: ConRes: ", "RA: ConRes: "};
"RA: WaitComplt: ",
"RA: Complt: "};
#define rError(fmt, ...) logger.error("%s" fmt, state_str[state], ##__VA_ARGS__) #define rError(fmt, ...) logger.error("%s" fmt, state_str[state], ##__VA_ARGS__)
#define rInfo(fmt, ...) logger.info("%s" fmt, state_str[state], ##__VA_ARGS__) #define rInfo(fmt, ...) logger.info("%s" fmt, state_str[state], ##__VA_ARGS__)

Loading…
Cancel
Save