summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-04-16 20:43:10 +0000
committerjhb <jhb@FreeBSD.org>2003-04-16 20:43:10 +0000
commit373f7eda612b6ee1acc07ceaf8f8a7af88a2b4f4 (patch)
tree30515c5df96e509a21deeaa778e8036105dd49aa /sys
parentaddc55224aa449b706b7c3e7c0a70d4f43aeab60 (diff)
downloadFreeBSD-src-373f7eda612b6ee1acc07ceaf8f8a7af88a2b4f4.zip
FreeBSD-src-373f7eda612b6ee1acc07ceaf8f8a7af88a2b4f4.tar.gz
Explicitly cast a l_ulong to an unsigned long to make all arch's happy
with the printf format.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/linux_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 7dc069a..4e95020 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -878,7 +878,7 @@ linux_personality(struct thread *td, struct linux_personality_args *args)
{
#ifdef DEBUG
if (ldebug(personality))
- printf(ARGS(personality, "%ld"), args->per);
+ printf(ARGS(personality, "%lu"), (unsigned long)args->per);
#endif
#ifndef __alpha__
if (args->per != 0)
OpenPOWER on IntegriCloud