AFS_INT64_FMT takes a afs_int64, not int64_t
authorAndrew Deason <adeason@sinenomine.net>
Thu, 22 Jul 2010 16:34:24 +0000 (11:34 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 22 Jul 2010 17:36:20 +0000 (10:36 -0700)
Cast to afs_int64, as int64_t can reduce to a different type than
AFS_INT64_FMT's.

Change-Id: I77ffe8813fbef284e6e91db25804d95d73898b54
Reviewed-on: http://gerrit.openafs.org/2466
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/vol/namei_ops.c

index dc4cd8f..e208470 100644 (file)
@@ -738,7 +738,7 @@ namei_dec(IHandle_t * ih, Inode ino, int p1)
            IHandle_t *th;
            IH_INIT(th, ih->ih_dev, ih->ih_vid, ino);
            Log("Warning: Lost ref on ihandle dev %d vid %d ino %" AFS_INT64_FMT "\n",
-               th->ih_dev, th->ih_vid, (int64_t) th->ih_ino);
+               th->ih_dev, th->ih_vid, (afs_int64)th->ih_ino);
            IH_RELEASE(th);
          
            /* If we're less than 0, someone presumably unlinked;