]> git.proxmox.com Git - mirror_spl.git/commitdiff
Fix ASSERT0 and VERIFY0 macro typo
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 21 Jun 2013 17:02:26 +0000 (10:02 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 21 Jun 2013 22:38:46 +0000 (15:38 -0700)
Ensure the value is cast to a 'long long' for printing purposes.  The
expectation is that ASSERT0/VERIFY0 are mostly used for validating
return values and thus may commonly be negative.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #246

include/sys/debug.h

index ac716c9a0687f2f72e15c53697c47f1bcabe4aa9..f3f3529a9cb331335e1dfa9b4fd778eab01286c9 100644 (file)
@@ -81,7 +81,7 @@ do {                                                                  \
 #define VERIFY3U(x,y,z)        VERIFY3_IMPL(x, y, z, uint64_t, "%llu",         \
                                    (unsigned long long))
 #define VERIFY3P(x,y,z)        VERIFY3_IMPL(x, y, z, uintptr_t, "%p", (void *))
-#define VERIFY0(x)     VERIFY3_IMPL(0, ==, x, int64_t, "%lld", (uint64_t))
+#define VERIFY0(x)     VERIFY3_IMPL(0, ==, x, int64_t, "%lld", (long long))
 
 #define ASSERT3S(x,y,z)        ((void)0)
 #define ASSERT3U(x,y,z)        ((void)0)
@@ -134,7 +134,7 @@ do {                                                                        \
 #define VERIFY3U(x,y,z)        VERIFY3_IMPL(x, y, z, uint64_t, "%llu",         \
                                    (unsigned long long))
 #define VERIFY3P(x,y,z)        VERIFY3_IMPL(x, y, z, uintptr_t, "%p", (void *))
-#define VERIFY0(x)     VERIFY3_IMPL(0, ==, x, int64_t, "%lld", (uint64_t))
+#define VERIFY0(x)     VERIFY3_IMPL(0, ==, x, int64_t, "%lld", (long long))
 
 #define ASSERT3S(x,y,z)        VERIFY3S(x, y, z)
 #define ASSERT3U(x,y,z)        VERIFY3U(x, y, z)