summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-09-05 17:57:19 +0000
committerstefanf <stefanf@FreeBSD.org>2005-09-05 17:57:19 +0000
commitdb33f7746853e588eaedd28eadb7801109dac2bc (patch)
treec6eb04fa8f3d07a3e9e66393fac3722d715adf68 /bin
parentfee0bd611a843ccf7bfc07be1d1b7395b3f262ae (diff)
downloadFreeBSD-src-db33f7746853e588eaedd28eadb7801109dac2bc.zip
FreeBSD-src-db33f7746853e588eaedd28eadb7801109dac2bc.tar.gz
Print pointers with %p rather than casting them to long.
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/eval.c6
-rw-r--r--bin/sh/jobs.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index 18bcd1c..c468e81 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -190,7 +190,7 @@ evaltree(union node *n, int flags)
#ifndef NO_HISTORY
displayhist = 1; /* show history substitutions done with fc */
#endif
- TRACE(("evaltree(0x%lx: %d) called\n", (long)n, n->type));
+ TRACE(("evaltree(%p: %d) called\n", (void *)n, n->type));
switch (n->type) {
case NSEMI:
evaltree(n->nbinary.ch1, 0);
@@ -457,7 +457,7 @@ evalpipe(union node *n)
int prevfd;
int pip[2];
- TRACE(("evalpipe(0x%lx) called\n", (long)n));
+ TRACE(("evalpipe(%p) called\n", (void *)n));
pipelen = 0;
for (lp = n->npipe.cmdlist ; lp ; lp = lp->next)
pipelen++;
@@ -596,7 +596,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
#endif
/* First expand the arguments. */
- TRACE(("evalcommand(0x%lx, %d) called\n", (long)cmd, flags));
+ TRACE(("evalcommand(%p, %d) called\n", (void *)cmd, flags));
setstackmark(&smark);
arglist.lastp = &arglist.list;
varlist.lastp = &varlist.list;
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index 8c19d22..ac03c95 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -647,7 +647,7 @@ makejob(union node *node __unused, int nprocs)
jp->ps = &jp->ps0;
}
INTON;
- TRACE(("makejob(0x%lx, %d) returns %%%d\n", (long)node, nprocs,
+ TRACE(("makejob(%p, %d) returns %%%d\n", (void *)node, nprocs,
jp - jobtab + 1));
return jp;
}
@@ -733,7 +733,7 @@ forkshell(struct job *jp, union node *n, int mode)
pid_t pid;
pid_t pgrp;
- TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long)n,
+ TRACE(("forkshell(%%%d, %p, %d) called\n", jp - jobtab, (void *)n,
mode));
INTOFF;
flushall();
OpenPOWER on IntegriCloud