[OpenAFS-devel] Error diagnosis - ReallyRead failure

Ted Anderson ota@transarc.com
Tue, 12 Feb 2002 10:13:27 -0500 (EST)


The problem is that that these print statements are in error.  They
contain a %X but are passed a (pointer to) a string representation of
the inode value.

From viced/physio.c:82:
        ViceLog (0,
		 ("ReallyRead(): read failed device %X inode %X errno %d\n",
		  file->dirh_handle->ih_dev,
		  PrintInode(NULL, file->dirh_handle->ih_ino), code));
Where PrintInode is defined in  sys/afssyscalls.h as:
    extern char *PrintInode(afs_ino_str_t, Inode);

So the (second) %X needs to be turned into a %s.  A quick scan of
src/viced turns up several more of these.

Ted Anderson