From: Brian Behlendorf Date: Tue, 1 Dec 2009 18:14:01 +0000 (-0800) Subject: Type long expected explicitly cast for 32-bit systems. X-Git-Tag: spl-0.4.8~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ff686c44dbc39f12cb57e930fb20199203514d9;p=spl Type long expected explicitly cast for 32-bit systems. --- diff --git a/module/splat/splat-rwlock.c b/module/splat/splat-rwlock.c index cf36703..1314026 100644 --- a/module/splat/splat-rwlock.c +++ b/module/splat/splat-rwlock.c @@ -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; }