diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-07-21 12:36:27 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-07-21 12:36:27 +0200 |
commit | f1e01517bc667c40cd5bc9d4399685cf3cc14994 (patch) | |
tree | 4415a14659c046597baa12e3c29ed1def27aab80 /sgsnemu | |
parent | ad252e70aa922cec133df07c95b3941ce88ab2e1 (diff) |
sgsnemu: Fix format string argument count
Change-Id: I6bb8c3df53a585913d5e0351ecad2e6ae9f0b886
Closes: CID#178643
Diffstat (limited to 'sgsnemu')
-rw-r--r-- | sgsnemu/sgsnemu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c index 36b52fc..8e41031 100644 --- a/sgsnemu/sgsnemu.c +++ b/sgsnemu/sgsnemu.c @@ -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); |