- fmt = tok2str(type2str, "#%d", dp->icmp_code);
- (void)snprintf(buf, sizeof(buf), "redirect-%s %s to net %s",
- fmt, ipaddr_string(&dp->icmp_ip.ip_dst),
+ fmt = tok2str(type2str, "redirect-#%d %%s to net %%s",
+ dp->icmp_code);
+ (void)snprintf(buf, sizeof(buf), fmt,
+ ipaddr_string(&dp->icmp_ip.ip_dst),