mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/torture: Use portable format specifiers
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15498 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
f83d6c53cc
commit
e933fd2dad
@ -561,9 +561,9 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint32_t __got = (got), __expected = (expected); \
|
||||
if (__got != __expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %ju (0x%jX), expected %ju (0x%jX): %s", \
|
||||
(uintmax_t)__got, (uintmax_t)__got, \
|
||||
(uintmax_t)__expected, (uintmax_t)__expected, \
|
||||
__location__": "#got" was %"PRIu32" (0x%"PRIX32"), expected %"PRIu32" (0x%"PRIX32"): %s", \
|
||||
__got, __got, \
|
||||
__expected, __expected, \
|
||||
cmt); \
|
||||
return false; \
|
||||
} \
|
||||
@ -573,9 +573,9 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint32_t __got = (got), __expected = (expected); \
|
||||
if (__got != __expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %ju (0x%jX), expected %ju (0x%jX): %s", \
|
||||
(uintmax_t)__got, (uintmax_t)__got, \
|
||||
(uintmax_t)__expected, (uintmax_t)__expected, \
|
||||
__location__": "#got" was %"PRIu32" (0x%"PRIX32"), expected %"PRIu32" (0x%"PRIX32"): %s", \
|
||||
__got, __got, \
|
||||
__expected, __expected, \
|
||||
cmt); \
|
||||
ret = false; \
|
||||
goto label; \
|
||||
@ -586,8 +586,8 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint32_t __got = (got), __not_expected = (not_expected); \
|
||||
if (__got == __not_expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %ju (0x%jX), expected a different number: %s", \
|
||||
(uintmax_t)__got, (uintmax_t)__got, \
|
||||
__location__": "#got" was %"PRIu32" (0x%"PRIX32"), expected a different number: %s", \
|
||||
__got, __got, \
|
||||
cmt); \
|
||||
return false; \
|
||||
} \
|
||||
@ -597,8 +597,8 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint32_t __got = (got), __not_expected = (not_expected); \
|
||||
if (__got == __not_expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %ju (0x%jX), expected a different number: %s", \
|
||||
(uintmax_t)__got, (uintmax_t)__got, \
|
||||
__location__": "#got" was %"PRIu32" (0x%"PRIX32"), expected a different number: %s", \
|
||||
__got, __got, \
|
||||
cmt); \
|
||||
ret = false; \
|
||||
goto label; \
|
||||
@ -609,9 +609,9 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint64_t __got = (got), __expected = (expected); \
|
||||
if (__got != __expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %llu (0x%llX), expected %llu (0x%llX): %s", \
|
||||
(unsigned long long)__got, (unsigned long long)__got, \
|
||||
(unsigned long long)__expected, (unsigned long long)__expected, \
|
||||
__location__": "#got" was %"PRIu64" (0x%"PRIX64"), expected %"PRIu64" (0x%"PRIX64"): %s", \
|
||||
__got, __got, \
|
||||
__expected, __expected, \
|
||||
cmt); \
|
||||
return false; \
|
||||
} \
|
||||
@ -621,9 +621,9 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint64_t __got = (got), __expected = (expected); \
|
||||
if (__got != __expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %llu (0x%llX), expected %llu (0x%llX): %s", \
|
||||
(unsigned long long)__got, (unsigned long long)__got, \
|
||||
(unsigned long long)__expected, (unsigned long long)__expected, \
|
||||
__location__": "#got" was %"PRIu64" (0x%"PRIX64"), expected %"PRIu64" (0x%"PRIX64"): %s", \
|
||||
__got, __got, \
|
||||
__expected, __expected, \
|
||||
cmt); \
|
||||
ret = false; \
|
||||
goto label; \
|
||||
@ -634,8 +634,8 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint64_t __got = (got), __not_expected = (not_expected); \
|
||||
if (__got == __not_expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %llu (0x%llX), expected a different number: %s", \
|
||||
(unsigned long long)__got, (unsigned long long)__got, \
|
||||
__location__": "#got" was %"PRIu64" (0x%"PRIX64"), expected a different number: %s", \
|
||||
__got, __got, \
|
||||
cmt); \
|
||||
return false; \
|
||||
} \
|
||||
@ -645,8 +645,8 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
|
||||
do { uint64_t __got = (got), __not_expected = (not_expected); \
|
||||
if (__got == __not_expected) { \
|
||||
torture_result(torture_ctx, TORTURE_FAIL, \
|
||||
__location__": "#got" was %llu (0x%llX), expected a different number: %s", \
|
||||
(unsigned long long)__got, (unsigned long long)__got, \
|
||||
__location__": "#got" was %"PRIu64" (0x%"PRIX64"), expected a different number: %s", \
|
||||
__got, __got, \
|
||||
cmt); \
|
||||
ret = false; \
|
||||
goto label; \
|
||||
|
Loading…
Reference in New Issue
Block a user