bd: add MAXLEN for limit output

MAXLEN could be changed