Type long expected explicitly cast for 32-bit systems.

This commit is contained in:
Brian Behlendorf 2009-12-01 10:14:01 -08:00
parent f6ea161924
commit 6ff686c44d
1 changed files with 2 additions and 2 deletions

View File

@ -591,8 +591,8 @@ splat_rwlock_test6(struct file *file, void *arg)
rc = rw_tryupgrade(&rwp->rw_rwlock);
if (!rc) {
splat_vprint(file, SPLAT_RWLOCK_TEST6_NAME,
"rwlock contended preventing upgrade: %d\n",
RW_COUNT(&rwp->rw_rwlock));
"rwlock contended preventing upgrade: %ld\n",
(long int)RW_COUNT(&rwp->rw_rwlock));
goto out;
}