X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Fposix%2Fposix-wordsize.h;h=72e8b3b176f60f5dd36e267103cd58d3ed374454;hb=d38d331fa6525ffc02665f48fa52f94626360631;hp=f675960e4d7e5c455daea670efea81f46d6c934c;hpb=2903b9734fd36ca2c115926abadc9632264a3d89;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/posix/posix-wordsize.h b/libcfs/include/libcfs/posix/posix-wordsize.h index f675960..72e8b3b 100644 --- a/libcfs/include/libcfs/posix/posix-wordsize.h +++ b/libcfs/include/libcfs/posix/posix-wordsize.h @@ -1,6 +1,4 @@ -/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- - * vim:expandtab:shiftwidth=8:tabstop=8: - * +/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -26,8 +24,10 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. + * + * Copyright (c) 2011, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -115,22 +115,25 @@ typedef struct { #if (defined(__KERNEL__) && defined(HAVE_KERN__U64_LONG_LONG)) || \ (!defined(__KERNEL__) && defined(HAVE_USER__U64_LONG_LONG)) /* x86_64 defines __u64 as "long" in userspace, but "long long" in the kernel */ -# define LPU64 "%Lu" -# define LPD64 "%Ld" -# define LPX64 "%#Lx" -# define LPX64i "%Lx" -# define LPF64 "L" +# define LPU64 "%llu" +# define LPD64 "%lld" +# define LPX64 "%#llx" +# define LPX64i "%llx" +# define LPO64 "%#llo" +# define LPF64 "ll" #elif (BITS_PER_LONG == 32) -# define LPU64 "%Lu" -# define LPD64 "%Ld" -# define LPX64 "%#Lx" -# define LPX64i "%Lx" +# define LPU64 "%llu" +# define LPD64 "%lld" +# define LPX64 "%#llx" +# define LPX64i "%llx" +# define LPO64 "%#llo" # define LPF64 "L" #elif (BITS_PER_LONG == 64) # define LPU64 "%lu" # define LPD64 "%ld" -# define LPX64 "%#lx" # define LPX64i "%lx" +# define LPX64 "%#lx" +# define LPO64 "%#lo" # define LPF64 "l" #endif