* amd/readdir.c (amfs_readdir_browsable): use %p, not %lx.
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 21 Mar 2005 00:16:53 +0000 (00:16 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 21 Mar 2005 00:16:53 +0000 (00:16 +0000)
* libamu/mount_fs.c (print_nfs_args): print pointer with %p, not
%lx.

ChangeLog
amd/readdir.c
libamu/mount_fs.c

index e574b0794ddf77973e4b01ff39a54e4ec2fc8533..5d59f9029e36b32197e6bf1623360ae311cca8df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-03-20  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * amd/readdir.c (amfs_readdir_browsable): use %p, not %lx.
+
+       * libamu/mount_fs.c (print_nfs_args): print pointer with %p, not
+       %lx.
+
 2005-03-18  Erez Zadok  <ezk@cs.sunysb.edu>
 
        *******************************************************************
index 94dabd36bc4ca30bd39096fa010e1a76b3ee0c5d..cab74ad65f3345046fef7ccd6a9287ea46410a32 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: readdir.c,v 1.4 2005/01/03 20:56:45 ezk Exp $
+ * $Id: readdir.c,v 1.5 2005/03/21 00:16:53 ezk Exp $
  *
  */
 
@@ -352,10 +352,8 @@ amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *
   dp->dl_entries = ep;
   if (amuDebug(D_READDIR)) {
     nfsentry *ne;
-    plog(XLOG_DEBUG, "dl_entries=0x%lx, te_next=0x%lx, dl_eof=%d",
-        (u_long) dp->dl_entries,
-        (u_long) te_next,
-        dp->dl_eof);
+    plog(XLOG_DEBUG, "dl_entries=%p, te_next=%p, dl_eof=%d",
+        dp->dl_entries, te_next, dp->dl_eof);
     for (ne = te; ne; ne = ne->ne_nextentry)
       plog(XLOG_DEBUG, "gen3 key %4d \"%s\"", j++, ne->ne_name);
   }
index ca40d25eb12bdf2617c2eaf201cd30ea534179b2..21f3851bc02842b0d54eda89dff9102264b25ce1 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: mount_fs.c,v 1.48 2005/03/19 03:05:25 ezk Exp $
+ * $Id: mount_fs.c,v 1.49 2005/03/21 00:16:53 ezk Exp $
  *
  */
 
@@ -869,7 +869,7 @@ print_nfs_args(const nfs_args_t *nap, u_long nfs_version)
        nbp->maxlen, nbp->len,
        get_hex_string(nbp->len, nbp->buf));
   nbp = nap->syncaddr;
-  plog(XLOG_DEBUG, "NA->syncaddr {netbuf} 0x%lx", (long) nbp);
+  plog(XLOG_DEBUG, "NA->syncaddr {netbuf} %p", nbp);
   kncp = nap->knconf;
   plog(XLOG_DEBUG, "NA->knconf->semantics %lu", (u_long) kncp->knc_semantics);
   plog(XLOG_DEBUG, "NA->knconf->protofmly \"%s\"", kncp->knc_protofmly);