Fix aarch64 type warning

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
This commit is contained in:
Brian Behlendorf 2016-10-01 18:33:01 -07:00 committed by GitHub
parent 8acfb2bcc1
commit 6c2a66bfa8

View File

@ -589,8 +589,8 @@ splat_rwlock_test6(struct file *file, void *arg)
splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME, splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME,
"We assumed single reader rwsem->count " "We assumed single reader rwsem->count "
"should be %ld, but is %ld\n", "should be %ld, but is %ld\n",
SPL_RWSEM_SINGLE_READER_VALUE, (long int)SPL_RWSEM_SINGLE_READER_VALUE,
RWSEM_COUNT(SEM(&rwp->rw_rwlock))); (long int)RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
rc = -ENOLCK; rc = -ENOLCK;
goto out; goto out;
} }
@ -602,8 +602,8 @@ splat_rwlock_test6(struct file *file, void *arg)
splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME, splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME,
"We assumed single writer rwsem->count " "We assumed single writer rwsem->count "
"should be %ld, but is %ld\n", "should be %ld, but is %ld\n",
SPL_RWSEM_SINGLE_WRITER_VALUE, (long int)SPL_RWSEM_SINGLE_WRITER_VALUE,
RWSEM_COUNT(SEM(&rwp->rw_rwlock))); (long int)RWSEM_COUNT(SEM(&rwp->rw_rwlock)));
rc = -ENOLCK; rc = -ENOLCK;
goto out; goto out;
} }