if (var_name)
tprintf("%s=inet_addr(\"%s\")", var_name, buf);
else
- tprints(buf);
+ tprintf("inet_addr(\"%s\")", buf);
return true;
}
break;
tprintf("inet_pton(%s, \"%s\", &%s)",
"AF_INET6", buf, var_name);
else
- tprints(buf);
+ tprintf("inet_pton(%s, \"%s\")",
+ "AF_INET6", buf);
return true;
}
break;
TEST_NLATTR_OBJECT(fd, nlh0, hdrlen,
init_ifaddrmsg, print_ifaddrmsg,
IFA_ADDRESS, pattern, a4,
- printf("%s", address4));
+ printf("inet_addr(\"%s\")", address4));
SET_IFA_FAMILY(AF_INET6);
TEST_NLATTR_OBJECT(fd, nlh0, hdrlen,
init_ifaddrmsg, print_ifaddrmsg,
IFA_ADDRESS, pattern, a6,
- printf("%s", address6));
+ printf("inet_pton(AF_INET6, \"%s\")", address6));
TEST_NLATTR_OBJECT(fd, nlh0, hdrlen,
init_ifaddrmsg, print_ifaddrmsg,
init_AF_INET6_msg, print_AF_INET6_msg,
7, "IFLA_INET6_TOKEN", pattern,
inet6_addr, print_quoted_hex, 2,
- printf("badc:ded:face:beef:deca:feed"
- ":dead:feed"));
+ printf("inet_pton(AF_INET6"
+ ", \"badc:ded:face:beef"
+ ":deca:feed:dead:feed\")"));
/* AF_INET6: IFLA_INET6_ */
static const struct {