]> granicus.if.org Git - zfs/commitdiff
Fix aarch64 type warning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 2 Oct 2016 01:33:01 +0000 (18:33 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Oct 2016 01:33:01 +0000 (18:33 -0700)
Explicitly cast type in splat-rwlock.c test case to silence
the following warning.

  warning: format ‘%ld’ expects argument of type ‘long int’,
  but argument N has type ‘int’

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #574

module/splat/splat-rwlock.c

index c17eb07ba5c0ba62b499d16cc8ce54744d9b7620..4576f20c7d006a9aee0ae4ce1aa07b0d2e0b935e 100644 (file)
@@ -587,10 +587,10 @@ splat_rwlock_test6(struct file *file, void *arg)
        if (RWSEM_COUNT(SEM(&rwp->rw_rwlock)) !=
            SPL_RWSEM_SINGLE_READER_VALUE) {
                splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME,
-                            "We assumed single reader rwsem->count "
-                            "should be %ld, but is %ld\n",
-                            SPL_RWSEM_SINGLE_READER_VALUE,
-                            RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
+                   "We assumed single reader rwsem->count "
+                   "should be %ld, but is %ld\n",
+                   (long int)SPL_RWSEM_SINGLE_READER_VALUE,
+                   (long int)RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
                rc = -ENOLCK;
                goto out;
        }
@@ -600,10 +600,10 @@ splat_rwlock_test6(struct file *file, void *arg)
        if (RWSEM_COUNT(SEM(&rwp->rw_rwlock)) !=
            SPL_RWSEM_SINGLE_WRITER_VALUE) {
                splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME,
-                            "We assumed single writer rwsem->count "
-                            "should be %ld, but is %ld\n",
-                            SPL_RWSEM_SINGLE_WRITER_VALUE,
-                            RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
+                   "We assumed single writer rwsem->count "
+                   "should be %ld, but is %ld\n",
+                   (long int)SPL_RWSEM_SINGLE_WRITER_VALUE,
+                   (long int)RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
                rc = -ENOLCK;
                goto out;
        }