s4:torture: correctly cast printf() argument
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Thu, 12 Sep 2019 08:22:58 +0000 (10:22 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 12 Sep 2019 16:16:28 +0000 (16:16 +0000)
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 <ralph.wuerthner@de.ibm.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/create.c

index 3fd99de0a3a11a636d30e8c3f339adf1d3a9039d..f3eca493e4bafc35e292fd7f0c0cc0054e747e0f 100644 (file)
        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)
 
 /*