viced-printinode-returns-string-not-number-20020212
authorNathan Neulinger <nneul@umr.edu>
Wed, 13 Feb 2002 04:00:57 +0000 (04:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Feb 2002 04:00:57 +0000 (04:00 +0000)
based on feedback from ota@transarc.com

PrintInode returns a string, use it

src/viced/afsfileprocs.c
src/viced/physio.c

index 71d102a..1c94dca 100644 (file)
@@ -2374,7 +2374,7 @@ SAFSS_Rename (tcon, OldDirFid, OldName, NewDirFid, NewName, OutOldDirStatus,
                                 V_parentId(volptr));
                IH_RELEASE(newfileptr->handle);
                if (errorCode == -1) {
-                   ViceLog(0, ("Del: inode=%d, name=%s, errno=%d\n",
+                   ViceLog(0, ("Del: inode=%s, name=%s, errno=%d\n",
                                PrintInode(NULL, VN_GET_INO(newfileptr)),
                                NewName, errno));
                    if ((errno != ENOENT) && (errno != EIO) && (errno != ENXIO))
index c606ee5..642cda9 100644 (file)
@@ -59,7 +59,7 @@ char        * data;
     if (fdP == NULL) {
        code = errno;
         ViceLog (0,
-                ("ReallyRead(): open failed device %X inode %X errno %d\n",
+                ("ReallyRead(): open failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), code));
        return code;
@@ -67,7 +67,7 @@ char        * data;
     if (FDH_SEEK(fdP, block * PAGESIZE, SEEK_SET) < 0) {
        code = errno;
         ViceLog (0,
-                ("ReallyRead(): lseek failed device %X inode %X errno %d\n",
+                ("ReallyRead(): lseek failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), code));
        FDH_REALLYCLOSE(fdP);
@@ -80,7 +80,7 @@ char        * data;
        else
            code = EIO;
         ViceLog (0,
-                ("ReallyRead(): read failed device %X inode %X errno %d\n",
+                ("ReallyRead(): read failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), code));
        FDH_REALLYCLOSE(fdP);
@@ -103,7 +103,7 @@ char              * data;
     fdP = IH_OPEN(file->dirh_handle);
     if (fdP == NULL) {
         ViceLog (0,
-                ("ReallyWrite(): open failed device %X inode %X errno %d\n",
+                ("ReallyWrite(): open failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), errno));
        lpErrno = errno;
@@ -111,7 +111,7 @@ char              * data;
     }
     if (FDH_SEEK(fdP, block * PAGESIZE, SEEK_SET) < 0) {
         ViceLog (0,
-                ("ReallyWrite(): lseek failed device %X inode %X errno %d\n",
+                ("ReallyWrite(): lseek failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), errno));
        lpErrno = errno;
@@ -120,7 +120,7 @@ char              * data;
     }
     if ((count = FDH_WRITE(fdP, data, PAGESIZE)) != PAGESIZE) {
         ViceLog (0,
-                ("ReallyWrite(): write failed device %X inode %X errno %d\n",
+                ("ReallyWrite(): write failed device %X inode %s errno %d\n",
                  file->dirh_handle->ih_dev,
                  PrintInode(NULL, file->dirh_handle->ih_ino), errno));
        lpCount = count;