[rsl] Improve error message when the lchan allocation is failing

This commit is contained in:
Holger Hans Peter Freyther 2009-11-16 15:37:05 +01:00
parent 057fec5336
commit 0fef39a8ac
1 changed files with 2 additions and 1 deletions

View File

@ -1139,7 +1139,8 @@ static int rsl_rx_chan_rqd(struct msgb *msg)
/* check availability / allocate channel */
lchan = lchan_alloc(bts, lctype);
if (!lchan) {
fprintf(stderr, "CHAN RQD: no resources\n");
DEBUGP(DRSL, "CHAN RQD: no resources for %u 0x%x\n",
lctype, rqd_ref->ra);
/* FIXME: send some kind of reject ?!? */
return -ENOMEM;
}