From 612290fe8ee20bb6b550b69b157e87a6d9b86993 Mon Sep 17 00:00:00 2001 From: mjmac Date: Thu, 27 Sep 2007 03:39:03 +0000 Subject: [PATCH] b=13541 Reverting broken commit. --- lustre/lvfs/lvfs_lib.c | 4 ++-- lustre/lvfs/prng.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lustre/lvfs/lvfs_lib.c b/lustre/lvfs/lvfs_lib.c index a89f972..55e4e6f 100644 --- a/lustre/lvfs/lvfs_lib.c +++ b/lustre/lvfs/lvfs_lib.c @@ -35,8 +35,8 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type, { if (ptr == NULL || (ll_rand() & OBD_ALLOC_FAIL_MASK) < obd_alloc_fail_rate) { - CERROR("%s%salloc of %s ("LPU64" bytes) failed at %s:%d\n", - ptr ? "force " :"", type, name, (__u64) size, file, + CERROR("%s%salloc of %s (%u bytes) failed at %s:%d\n", + ptr ? "force " :"", type, name, (unsigned int)size, file, line); CERROR("%d total bytes allocated by Lustre, %d by Portals\n", atomic_read(&obd_memory), atomic_read(&libcfs_kmemory)); diff --git a/lustre/lvfs/prng.c b/lustre/lvfs/prng.c index 1c926f4..4922c04 100644 --- a/lustre/lvfs/prng.c +++ b/lustre/lvfs/prng.c @@ -16,11 +16,9 @@ #ifndef __KERNEL__ #include #define get_random_bytes(val, size) (*val) = 0 -#else /* __KERNEL__ */ -#include -#endif /* __KERNEL__ */ - +#endif #include +#include /* From: George Marsaglia -- 1.8.3.1