do not print unreasonably long defs

Signed-off-by: Bao Haojun <baohaojun@gmail.com>