diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2018-11-05 09:23:13 -0500 |
---|---|---|
committer | Nicolas Iooss <nicolas.iooss@m4x.org> | 2018-11-23 21:38:44 +0100 |
commit | 49c13dd6bcb87aa172beea2ea01ff37ca9055e0b (patch) | |
tree | f1cdd93aad75a6d2b219040c63827097188e9312 | |
parent | 3b0dbede9c647d3393d1a362bdce21bbea3ebac4 (diff) | |
download | android_external_selinux-49c13dd6bcb87aa172beea2ea01ff37ca9055e0b.tar.gz android_external_selinux-49c13dd6bcb87aa172beea2ea01ff37ca9055e0b.tar.bz2 android_external_selinux-49c13dd6bcb87aa172beea2ea01ff37ca9055e0b.zip |
libsepol: ibpkeys.c: fix printf format string specifiers for subnet_prefix
Use PRIx64 to print the subnet_prefix (which is a uint64_t) instead
of lx.
Fixes #108
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
-rw-r--r-- | libsepol/src/ibpkeys.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsepol/src/ibpkeys.c b/libsepol/src/ibpkeys.c index 682bf5db..68a9bdfe 100644 --- a/libsepol/src/ibpkeys.c +++ b/libsepol/src/ibpkeys.c @@ -1,5 +1,6 @@ #include <netinet/in.h> #include <stdlib.h> +#include <inttypes.h> #include "debug.h" #include "context.h" @@ -176,7 +177,7 @@ int sepol_ibpkey_query(sepol_handle_t *handle, return STATUS_SUCCESS; err: - ERR(handle, "could not query ibpkey subnet prefix: %#lx range %u - %u exists", + ERR(handle, "could not query ibpkey subnet prefix: %#" PRIx64 " range %u - %u exists", subnet_prefix, low, high); return STATUS_ERR; } @@ -203,7 +204,7 @@ int sepol_ibpkey_modify(sepol_handle_t *handle, return STATUS_SUCCESS; err: - ERR(handle, "could not load ibpkey subnet prefix: %#lx range %u - %u exists", + ERR(handle, "could not load ibpkey subnet prefix: %#" PRIx64 " range %u - %u exists", subnet_prefix, low, high); if (ibpkey) { context_destroy(&ibpkey->context[0]); |