modify errpkt.c to show err threshold