proc: adapt time64_t

This commit is contained in:
Thomas Schoebel-Theuer 2021-01-27 12:48:34 +01:00 committed by Thomas Schoebel-Theuer
parent cc2af4a024
commit dbdb5a5f95
1 changed files with 4 additions and 4 deletions

View File

@ -288,10 +288,10 @@ int lamport_sysctl_handler(
get_lamport(&know, &lnow);
res = scnprintf(tmp, my_len,
"CURRENT_TIME=%ld.%09ld\n"
"lamport_now=%ld.%09ld\n",
know.tv_sec, know.tv_nsec,
lnow.tv_sec, lnow.tv_nsec
"CURRENT_TIME=%lld.%09ld\n"
"lamport_now=%lld.%09ld\n",
(s64)know.tv_sec, know.tv_nsec,
(s64)lnow.tv_sec, lnow.tv_nsec
);
if (copy_to_user(buffer, tmp, res)) {