aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-10-01 18:33:01 -0700
committerGitHub <[email protected]>2016-10-01 18:33:01 -0700
commit6c2a66bfa816793fbdcede8854816d526c925574 (patch)
treeddd90b04773814a03ac9bfce632ce40f1b66f466
parent8acfb2bcc118555fed2c0902c33d300a57630368 (diff)
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 <[email protected]> Closes #574
-rw-r--r--module/splat/splat-rwlock.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/splat/splat-rwlock.c b/module/splat/splat-rwlock.c
index c17eb07ba..4576f20c7 100644
--- a/module/splat/splat-rwlock.c
+++ b/module/splat/splat-rwlock.c
@@ -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;
}