diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/kern/kern_mac.c +++ b/sys/kern/kern_mac.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_internal.h b/sys/security/mac/mac_internal.h index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_internal.h +++ b/sys/security/mac/mac_internal.h @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_net.c b/sys/security/mac/mac_net.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_net.c +++ b/sys/security/mac/mac_net.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_pipe.c b/sys/security/mac/mac_pipe.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_pipe.c +++ b/sys/security/mac/mac_pipe.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_process.c +++ b/sys/security/mac/mac_process.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_syscalls.c b/sys/security/mac/mac_syscalls.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_syscalls.c +++ b/sys/security/mac/mac_syscalls.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_system.c b/sys/security/mac/mac_system.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_system.c +++ b/sys/security/mac/mac_system.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /* diff --git a/sys/security/mac/mac_vfs.c b/sys/security/mac/mac_vfs.c index 98aad1e085b2..c04294e149b5 100644 --- a/sys/security/mac/mac_vfs.c +++ b/sys/security/mac/mac_vfs.c @@ -51,8 +51,8 @@ #include #include #include +#include #include -#include #include #include #include @@ -66,7 +66,6 @@ #include #include #include -#include #include #include @@ -78,7 +77,6 @@ #include -#include #include #include #include @@ -2214,9 +2212,10 @@ mac_cred_mmapped_drop_perms_recurse(struct thread *td, struct ucred *cred, revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " - "(max %s/cur %s)\n", td->td_proc->p_pid, - prot2str(revokeperms), vme->start, vme->end - vme->start, + printf("pid %ld: revoking %s perms from %#lx:%ld " + "(max %s/cur %s)\n", (long)td->td_proc->p_pid, + prot2str(revokeperms), (u_long)vme->start, + (long)(vme->end - vme->start), prot2str(vme->max_protection), prot2str(vme->protection)); vm_map_lock_upgrade(map); /*