b37bd70962
Signed-off-by: Steve Dickson <steved@redhat.com> Resolves: bz1995316
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
diff --git a/utils/nfsdcltrack/nfsdcltrack.c b/utils/nfsdcltrack/nfsdcltrack.c
|
|
index 2f8bea81..7c1c4bcc 100644
|
|
--- a/utils/nfsdcltrack/nfsdcltrack.c
|
|
+++ b/utils/nfsdcltrack/nfsdcltrack.c
|
|
@@ -33,6 +33,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
+#include <inttypes.h>
|
|
#include <unistd.h>
|
|
#include <libgen.h>
|
|
#include <sys/inotify.h>
|
|
@@ -525,7 +526,7 @@ cltrack_gracedone(const char *timestr)
|
|
if (*tail)
|
|
return -EINVAL;
|
|
|
|
- xlog(D_GENERAL, "%s: grace done. gracetime=%ld", __func__, gracetime);
|
|
+ xlog(D_GENERAL, "%s: grace done. gracetime=%"PRIu64, __func__, gracetime);
|
|
|
|
ret = sqlite_remove_unreclaimed(gracetime);
|
|
|
|
diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c
|
|
index b6573544..78c22af8 100644
|
|
--- a/utils/nfsdcltrack/sqlite.c
|
|
+++ b/utils/nfsdcltrack/sqlite.c
|
|
@@ -46,6 +46,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <fcntl.h>
|
|
+#include <inttypes.h>
|
|
#include <unistd.h>
|
|
#include <sqlite3.h>
|
|
#include <stdint.h>
|
|
@@ -545,7 +546,7 @@ sqlite_remove_unreclaimed(uint64_t grace_start)
|
|
int ret;
|
|
char *err = NULL;
|
|
|
|
- ret = snprintf(buf, sizeof(buf), "DELETE FROM clients WHERE time < %ld",
|
|
+ ret = snprintf(buf, sizeof(buf), "DELETE FROM clients WHERE time < %"PRIu64,
|
|
grace_start);
|
|
if (ret < 0) {
|
|
return ret;
|