sgsnemu: Fix format string argument count

Change-Id: I6bb8c3df53a585913d5e0351ecad2e6ae9f0b886
Closes: CID#178643
This commit is contained in:
Harald Welte 2019-07-21 12:36:27 +02:00
parent ad252e70aa
commit f1e01517bc
1 changed files with 8 additions and 4 deletions

View File

@ -1452,12 +1452,16 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
if (!accept_ra || !forwarding)
printf("Could not open proc file for %s ?!?\n", tun->devname);
else {
if (!strcmp(accept_ra, "0") ||
(!strcmp(forwarding, "1") && !strcmp(accept_ra, "1"))) {
printf("%s is %s, i.e. your tun device is not configured to accept "
"router advertisements; SLAAC will not suceed, please "
if (!strcmp(accept_ra, "0")) {
printf("accept_ra=0, i.e. your tun device is not configured to accept "
"router advertisements; SLAAC will not succeed, please "
"fix your setup!\n");
}
if (!strcmp(forwarding, "1") && !strcmp(accept_ra, "1")) {
printf("forwarding=1 and accept_ra=1, i.e. your tun device is not "
"configured to accept router advertisements; SLAAC will not "
"succeed, please fix your setup!\n");
}
}
free(accept_ra);
free(forwarding);