Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use special macro for print time_t, cleanup in includes.
[fs/lustre-release.git]
/
lnet
/
include
/
libcfs
/
user-time.h
diff --git
a/lnet/include/libcfs/user-time.h
b/lnet/include/libcfs/user-time.h
index
3fb801d
..
874b7da
100644
(file)
--- a/
lnet/include/libcfs/user-time.h
+++ b/
lnet/include/libcfs/user-time.h
@@
-183,7
+183,10
@@
static inline cfs_duration_t cfs_time_sub(cfs_time_t t1, cfs_time_t t2)
#define cfs_time_before_64 cfs_time_before
#define cfs_time_beforeq_64 cfs_time_beforeq
-#define CFS_TIME_T "%lu"
+#ifndef CFS_TIME_T
+#define CFS_TIME_T "%u"
+#endif
+
#define CFS_DURATION_T "%ld"
/* !__KERNEL__ */