cast-pointer-20060126
authorJim Rees <rees@umich.edu>
Thu, 26 Jan 2006 18:11:23 +0000 (18:11 +0000)
committerJim Rees <rees@umich.edu>
Thu, 26 Jan 2006 18:11:23 +0000 (18:11 +0000)
Cast pointer to long for printf.
"%p" would be a better fix, but is it supported on all platforms?

src/afs/afs_vcache.c

index fbb7a5b..c338957 100644 (file)
@@ -600,7 +600,7 @@ afs_FlushReclaimedVcaches(void)
               We probably need a way to be smarter about this. */
            tvc->nextfree = tmpReclaimedVCList;
            tmpReclaimedVCList = tvc;
-           printf("Reclaim list flush %x failed: %d\n", tvc, code);
+           printf("Reclaim list flush %lx failed: %d\n", (unsigned long) tvc, code);
        }
     }
     if (tmpReclaimedVCList)