rlc: Rename state() to show_state() to better reflect its function

show_state() is only used for debugging output to make the v(b) array
human readable.
This commit is contained in:
Daniel Willmann 2014-01-15 12:45:56 +01:00 committed by Daniel Willmann
parent d54d9f5c75
commit 3ce011f44f
3 changed files with 5 additions and 3 deletions

View File

@ -130,7 +130,7 @@ int gprs_rlc_dl_window::move_window()
return moved;
}
void gprs_rlc_dl_window::state(char *show_v_b)
void gprs_rlc_dl_window::show_state(char *show_v_b)
{
int i;
uint16_t bsn;
@ -150,6 +150,8 @@ void gprs_rlc_dl_window::state(char *show_v_b)
case GPRS_RLC_DL_BSN_NACKED:
show_v_b[i] = 'N';
break;
default:
show_v_b[i] = '?';
}
}
show_v_b[i] = '\0';

View File

@ -130,7 +130,7 @@ struct gprs_rlc_dl_window {
void update(BTS *bts, char *show_rbb, uint8_t ssn,
uint16_t *lost, uint16_t *received);
int move_window();
void state(char *show_rbb);
void show_state(char *show_rbb);
int count_unacked();
uint16_t m_v_s; /* send state */

View File

@ -1374,7 +1374,7 @@ int gprs_rlcmac_tbf::update_window(const uint8_t ssn, const uint8_t *rbb)
dir.dl.window.raise(dir.dl.window.move_window());
/* show receive state array in debug (V(A)..V(S)-1) */
dir.dl.window.state(show_v_b);
dir.dl.window.show_state(show_v_b);
LOGP(DRLCMACDL, LOGL_DEBUG, "- V(B): (V(A)=%d)\"%s\""
"(V(S)-1=%d) A=Acked N=Nacked U=Unacked "
"X=Resend-Unacked I=Invalid\n",