When running hll/pp on some invalid policy module, it can output: libsepol.sepol_module_package_read: unknown magic number at section 1, offset: 251, number: 0x The last number looks funny and was caused by using "%ux". "u" is not a prefix like "l", "h", "z"... and "%x" already expects an unsigned integer (cf. http://man7.org/linux/man-pages/man3/printf.3.html). Signed-off-by: Nicolas Iooss <nicolas.iooss@xxxxxxx> --- libsepol/src/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsepol/src/module.c b/libsepol/src/module.c index 1c2becea5ef6..219355f30d27 100644 --- a/libsepol/src/module.c +++ b/libsepol/src/module.c @@ -627,7 +627,7 @@ int sepol_module_package_read(sepol_module_package_t * mod, default: /* unknown section, ignore */ ERR(file->handle, - "unknown magic number at section %u, offset: %zx, number: %ux ", + "unknown magic number at section %u, offset: %zx, number: %x ", i, offsets[i], le32_to_cpu(buf[0])); break; } -- 2.10.2 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.