blob: e802dca4ebd8e822fd169ae07ea44b19fda7e976 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From e694a122c1ff32d8b951ae55756796f9576d23ed Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jun 2018 23:37:09 -0700
4Subject: [PATCH] Use uintmax_t for handling rlim_t
5
6rlimit types are not representable with long or long long
7formats, therefore use uintmax_t to typecast rlim_t types
8and use %j to print it
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 open-vm-tools/lib/hgfsServer/hgfsServerLinux.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/lib/hgfsServer/hgfsServerLinux.c b/lib/hgfsServer/hgfsServerLinux.c
16index 2e73707d..a2fdb850 100644
17--- a/lib/hgfsServer/hgfsServerLinux.c
18+++ b/lib/hgfsServer/hgfsServerLinux.c
19@@ -5294,8 +5294,8 @@ HgfsWriteCheckIORange(off_t offset, // IN:
20 goto exit;
21 }
22
23- LOG(6, ("%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n",
24- __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max));
25+ LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n",
26+ __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max));
27
28 /*
29 * Check the offset is within the file size range.