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
/
utils
/
debug.c
diff --git
a/lnet/utils/debug.c
b/lnet/utils/debug.c
index
2a868dd
..
39af760
100644
(file)
--- a/
lnet/utils/debug.c
+++ b/
lnet/utils/debug.c
@@
-45,7
+45,6
@@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/utsname.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/utsname.h>
@@
-483,7
+482,8
@@
int jt_dbg_debug_kernel(int argc, char **argv)
if (argc > 1 && raw)
strcpy(filename, argv[1]);
else
if (argc > 1 && raw)
strcpy(filename, argv[1]);
else
- sprintf(filename, "/tmp/lustre-log.%lu.%u",time(NULL),getpid());
+ sprintf(filename, "/tmp/lustre-log."CFS_TIME_T".%u",
+ time(NULL),getpid());
if (stat(filename, &st) == 0 && S_ISREG(st.st_mode))
unlink(filename);
if (stat(filename, &st) == 0 && S_ISREG(st.st_mode))
unlink(filename);