mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 15:02:44 +00:00
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>
This commit is contained in:
parent
3b0dbede9c
commit
49c13dd6bc
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user