format_max
val = s == 0 ? format_max(fmt) :
else if (val == format_max(fmt))
extern int64_t format_max(uint32_t);
tx_chn, format_max(tx_fmt));