From 156eb9120e66fe58328decb035a4d926396f6a59 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Thu, 12 Sep 2019 10:22:58 +0200 Subject: s4:torture: correctly cast printf() argument In most cases sattrib is passed as a long int literal. Avoid compile errors by casting the value passed to printf(). Signed-off-by: Ralph Wuerthner Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source4/torture/smb2/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/smb2/create.c b/source4/torture/smb2/create.c index 3fd99de0a3a..f3eca493e4b 100644 --- a/source4/torture/smb2/create.c +++ b/source4/torture/smb2/create.c @@ -123,7 +123,7 @@ if (!NT_STATUS_IS_OK(status)) { \ torture_comment(tctx, \ "(%s) Failed to set attrib 0x%x on %s\n", \ - __location__, sattrib, fname); \ + __location__, (unsigned int)(sattrib), fname); \ }} while (0) /* -- cgit v1.2.1