summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_lomac
diff options
context:
space:
mode:
authorgleb <gleb@FreeBSD.org>2014-12-17 07:27:19 +0000
committergleb <gleb@FreeBSD.org>2014-12-17 07:27:19 +0000
commit5c99f46b3bbc601b0b935944e170948c781a073e (patch)
tree49e07a33f717fc11a77f96d21126c8dd675b430b /sys/security/mac_lomac
parent9bea39ca06cc5b3fe0c12d90363acdb8aa931771 (diff)
downloadFreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.zip
FreeBSD-src-5c99f46b3bbc601b0b935944e170948c781a073e.tar.gz
Adjust printf format specifiers for dev_t and ino_t in kernel.
ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick
Diffstat (limited to 'sys/security/mac_lomac')
-rw-r--r--sys/security/mac_lomac/mac_lomac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c
index cf66423..32ae223 100644
--- a/sys/security/mac_lomac/mac_lomac.c
+++ b/sys/security/mac_lomac/mac_lomac.c
@@ -559,11 +559,11 @@ maybe_demote(struct mac_lomac *subjlabel, struct mac_lomac *objlabel,
pgid = p->p_pgrp->pg_id; /* XXX could be stale? */
if (vp != NULL && VOP_GETATTR(vp, &va, curthread->td_ucred) == 0) {
log(LOG_INFO, "LOMAC: level-%s subject p%dg%du%d:%s demoted to"
- " level %s after %s a level-%s %s (inode=%ld, "
+ " level %s after %s a level-%s %s (inode=%ju, "
"mountpount=%s)\n",
subjlabeltext, p->p_pid, pgid, curthread->td_ucred->cr_uid,
p->p_comm, subjtext, actionname, objlabeltext, objname,
- va.va_fileid, vp->v_mount->mnt_stat.f_mntonname);
+ (uintmax_t)va.va_fileid, vp->v_mount->mnt_stat.f_mntonname);
} else {
log(LOG_INFO, "LOMAC: level-%s subject p%dg%du%d:%s demoted to"
" level %s after %s a level-%s %s\n",
OpenPOWER on IntegriCloud