diff options
author | bde <bde@FreeBSD.org> | 2002-10-12 13:48:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-10-12 13:48:21 +0000 |
commit | d3a326857dfa0d29e53048502c7442d53ad7fdb7 (patch) | |
tree | 4753f43b31f5da887158bcb6cda784334fe038cd /sys | |
parent | 7460c4d6d43240f32f039a9f1fa31e33e4b8446e (diff) | |
download | FreeBSD-src-d3a326857dfa0d29e53048502c7442d53ad7fdb7.zip FreeBSD-src-d3a326857dfa0d29e53048502c7442d53ad7fdb7.tar.gz |
Fixed syntax errors and printf format errors.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 8977c8d..5ea1b5d 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -36,6 +36,7 @@ #include <sys/proc.h> #include <sys/resource.h> #include <sys/resourcevar.h> +#include <sys/stdint.h> #include <sys/syscallsubr.h> #include <sys/sysproto.h> #include <sys/unistd.h> @@ -422,8 +423,8 @@ linux_mmap(struct thread *td, struct linux_mmap_args *args) #ifdef DEBUG if (ldebug(mmap)) printf(ARGS(mmap, "%p, %d, %d, 0x%08x, %d, %d"), - (void *)linux_args->addr, linux_args->len, linux_args->prot, - linux_args->flags, linux_args->fd, linux_args->pos); + (void *)linux_args.addr, linux_args.len, linux_args.prot, + linux_args.flags, linux_args.fd, linux_args.pos); #endif return (linux_mmap_common(td, &linux_args)); @@ -815,7 +816,8 @@ linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args) #ifdef DEBUG if (ldebug(ftruncate64)) - printf(ARGS(ftruncate64, "%d, %d"), args->fd, args->length); + printf(ARGS(ftruncate64, "%u, %jd"), args->fd, + (intmax_t)args->length); #endif sa.fd = args->fd; |