diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-27 00:32:43 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-27 00:32:43 +0000 |
commit | ddc9b78bc1b952293b6cb853aff2a1554397bd57 (patch) | |
tree | b72cf2d12948bb4f43c991a63c680705f1b1cd4f /sbin/iked | |
parent | 29e3cb27e974eb10501814ec371859f6a72527f9 (diff) |
print the required bits as a string
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/policy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/iked/policy.c b/sbin/iked/policy.c index 66ec11c74cd..19981013237 100644 --- a/sbin/iked/policy.c +++ b/sbin/iked/policy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: policy.c,v 1.9 2010/06/15 00:34:17 reyk Exp $ */ +/* $OpenBSD: policy.c,v 1.10 2010/06/27 00:32:42 reyk Exp $ */ /* $vantronix: policy.c,v 1.29 2010/05/28 15:34:35 reyk Exp $ */ /* @@ -146,10 +146,10 @@ sa_stateflags(struct iked_sa *sa, u_int flags) else require = sa->sa_stateinit; - log_debug("%s: 0x%02x -> 0x%02x %s (required 0x%02x)", __func__, + log_debug("%s: 0x%02x -> 0x%02x %s (required 0x%02x %s)", __func__, sa->sa_stateflags, sa->sa_stateflags | flags, - print_bits(sa->sa_stateflags | flags, - IKED_REQ_BITS), require); + print_bits(sa->sa_stateflags | flags, IKED_REQ_BITS), require, + print_bits(require, IKED_REQ_BITS)); sa->sa_stateflags |= flags; } |