From: Ralph Wuerthner Date: Thu, 12 Sep 2019 08:22:58 +0000 (+0200) Subject: s4:torture: correctly cast printf() argument X-Git-Tag: talloc-2.3.1~856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=156eb9120e66fe58328decb035a4d926396f6a59;p=thirdparty%2Fsamba.git 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 --- 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) /*