projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80018a9
)
staging/lustre: use 64-bit times in debug print
author
Arnd Bergmann
<
[email protected]
>
Sun, 27 Sep 2015 20:45:25 +0000
(16:45 -0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 29 Sep 2015 02:03:38 +0000
(
04:03
+0200)
This adapts the format string and get_seconds() call to not
overflow in 2038 in the libcfs_debug_dumplog_internal()
function.
Signed-off-by: Arnd Bergmann <
[email protected]
>
Signed-off-by: Oleg Drokin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/lustre/lustre/libcfs/debug.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/libcfs/debug.c
b/drivers/staging/lustre/lustre/libcfs/debug.c
index e93f556fac0dde68da054320fc320815c1025258..ae325f750eeb99a16ef5dcdf033fa162ff6fcf6c 100644
(file)
--- a/
drivers/staging/lustre/lustre/libcfs/debug.c
+++ b/
drivers/staging/lustre/lustre/libcfs/debug.c
@@
-452,8
+452,8
@@
void libcfs_debug_dumplog_internal(void *arg)
if (strncmp(libcfs_debug_file_path_arr, "NONE", 4) != 0) {
snprintf(debug_file_name, sizeof(debug_file_name) - 1,
- "%s.%ld.%ld", libcfs_debug_file_path_arr,
-
get
_seconds(), (long_ptr_t)arg);
+ "%s.%l
l
d.%ld", libcfs_debug_file_path_arr,
+
(s64)ktime_get_real
_seconds(), (long_ptr_t)arg);
pr_alert("LustreError: dumping log to %s\n",
debug_file_name);
cfs_tracefile_dump_all_pages(debug_file_name);