From c6999a248ad78f75cbfcc0f461298021b20905b4 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Jan 2018 12:15:58 +0000 Subject: [PATCH] vfs_fileid: Fix the 32-bit build Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/modules/vfs_fileid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c index c890876c998..5d08fe97d15 100644 --- a/source3/modules/vfs_fileid.c +++ b/source3/modules/vfs_fileid.c @@ -226,8 +226,8 @@ static uint64_t fileid_device_mapping_hostname(struct fileid_handle_data *data, return UINT64_MAX; } - devname = talloc_asprintf(talloc_tos(), "%s%lu", - hostname, sbuf->st_ex_dev); + devname = talloc_asprintf(talloc_tos(), "%s%ju", + hostname, (uintmax_t)sbuf->st_ex_dev); if (devname == NULL) { DBG_ERR("talloc_asprintf failed\n"); return UINT64_MAX; -- 2.11.4.GIT