aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-05 20:32:31 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-05 20:32:31 +0000
commit02d8fa48adcc5ee46262df787bd7e47e0e051cef (patch)
treed9c0106aa779ae77aba1d8108c58a1907e014d95
parent4e512f1062ec976dd72b8f21c129070025b1f8b4 (diff)
downloadbusybox-w32-02d8fa48adcc5ee46262df787bd7e47e0e051cef.tar.gz
busybox-w32-02d8fa48adcc5ee46262df787bd7e47e0e051cef.tar.bz2
busybox-w32-02d8fa48adcc5ee46262df787bd7e47e0e051cef.zip
use %p when printing pointers, not %x
-rw-r--r--shell/msh.c106
1 files changed, 54 insertions, 52 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 4fe80fd75..8abbeff5a 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -53,7 +53,7 @@
53#define REGISTER register 53#define REGISTER register
54 54
55 55
56/*#define MSHDEBUG 1*/ 56#define MSHDEBUG 1
57 57
58#ifdef MSHDEBUG 58#ifdef MSHDEBUG
59int mshdbg = 0; 59int mshdbg = 0;
@@ -776,10 +776,11 @@ static struct env e = {
776}; 776};
777 777
778#ifdef MSHDEBUG 778#ifdef MSHDEBUG
779void print_t(struct op *t);
779void print_t(struct op *t) 780void print_t(struct op *t)
780{ 781{
781 DBGPRINTF(("T: t=0x%x, type %s, words=0x%x, IOword=0x%x\n", t, 782 DBGPRINTF(("T: t=%p, type %s, words=%p, IOword=%p\n", t,
782 T_CMD_NAMES[t->type], t->words, t->ioact)); 783 T_CMD_NAMES[t->type], t->words, t->ioact));
783 784
784 if (t->words) { 785 if (t->words) {
785 DBGPRINTF(("T: W1: %s", t->words[0])); 786 DBGPRINTF(("T: W1: %s", t->words[0]));
@@ -788,6 +789,7 @@ void print_t(struct op *t)
788 return; 789 return;
789} 790}
790 791
792void print_tree(struct op *head);
791void print_tree(struct op *head) 793void print_tree(struct op *head)
792{ 794{
793 if (head == NULL) { 795 if (head == NULL) {
@@ -795,7 +797,7 @@ void print_tree(struct op *head)
795 return; 797 return;
796 } 798 }
797 799
798 DBGPRINTF(("NODE: 0x%x, left 0x%x, right 0x%x\n", head, head->left, 800 DBGPRINTF(("NODE: %p, left %p, right %p\n", head, head->left,
799 head->right)); 801 head->right));
800 802
801 if (head->left) 803 if (head->left)
@@ -827,7 +829,7 @@ int msh_main(int argc, char **argv)
827 char *name, **ap; 829 char *name, **ap;
828 int (*iof) (struct ioarg *); 830 int (*iof) (struct ioarg *);
829 831
830 DBGPRINTF(("MSH_MAIN: argc %d, environ 0x%x\n", argc, environ)); 832 DBGPRINTF(("MSH_MAIN: argc %d, environ %p\n", argc, environ));
831 833
832 initarea(); 834 initarea();
833 if ((ap = environ) != NULL) { 835 if ((ap = environ) != NULL) {
@@ -992,7 +994,7 @@ int msh_main(int argc, char **argv)
992 } 994 }
993 setval(lookup("#"), putn((--dolc < 0) ? (dolc = 0) : dolc)); 995 setval(lookup("#"), putn((--dolc < 0) ? (dolc = 0) : dolc));
994 996
995 DBGPRINTF(("MSH_MAIN: begin FOR loop, interactive %d, e.iop 0x%x, iostack 0x%x\n", interactive, e.iop, iostack)); 997 DBGPRINTF(("MSH_MAIN: begin FOR loop, interactive %d, e.iop %p, iostack %p\n", interactive, e.iop, iostack));
996 998
997 for (;;) { 999 for (;;) {
998 if (interactive && e.iop <= iostack) { 1000 if (interactive && e.iop <= iostack) {
@@ -1070,10 +1072,10 @@ struct op *head;
1070 if (head->words == NULL) 1072 if (head->words == NULL)
1071 return (NULL); 1073 return (NULL);
1072 1074
1073 DBGPRINTF5(("SCANTREE: checking node 0x%x\n", head)); 1075 DBGPRINTF5(("SCANTREE: checking node %p\n", head));
1074 1076
1075 if ((head->type != TDOT) && (strcmp(".", head->words[0]) == 0)) { 1077 if ((head->type != TDOT) && (strcmp(".", head->words[0]) == 0)) {
1076 DBGPRINTF5(("SCANTREE: dot found in node 0x%x\n", head)); 1078 DBGPRINTF5(("SCANTREE: dot found in node %p\n", head));
1077 return (head); 1079 return (head);
1078 } 1080 }
1079 1081
@@ -1086,7 +1088,7 @@ static void onecommand()
1086 REGISTER int i; 1088 REGISTER int i;
1087 jmp_buf m1; 1089 jmp_buf m1;
1088 1090
1089 DBGPRINTF(("ONECOMMAND: enter, outtree=0x%x\n", outtree)); 1091 DBGPRINTF(("ONECOMMAND: enter, outtree=%p\n", outtree));
1090 1092
1091 while (e.oenv) 1093 while (e.oenv)
1092 quitenv(); 1094 quitenv();
@@ -1126,7 +1128,7 @@ static void onecommand()
1126 execflg = 0; 1128 execflg = 0;
1127 1129
1128 if (!flag['n']) { 1130 if (!flag['n']) {
1129 DBGPRINTF(("ONECOMMAND: calling execute, t=outtree=0x%x\n", 1131 DBGPRINTF(("ONECOMMAND: calling execute, t=outtree=%p\n",
1130 outtree)); 1132 outtree));
1131 execute(outtree, NOPIPE, NOPIPE, 0); 1133 execute(outtree, NOPIPE, NOPIPE, 0);
1132 } 1134 }
@@ -1217,7 +1219,7 @@ static void quitenv()
1217 REGISTER struct env *ep; 1219 REGISTER struct env *ep;
1218 REGISTER int fd; 1220 REGISTER int fd;
1219 1221
1220 DBGPRINTF(("QUITENV: e.oenv=0x%x\n", e.oenv)); 1222 DBGPRINTF(("QUITENV: e.oenv=%p\n", e.oenv));
1221 1223
1222 if ((ep = e.oenv) != NULL) { 1224 if ((ep = e.oenv) != NULL) {
1223 fd = e.iofd; 1225 fd = e.iofd;
@@ -1790,7 +1792,7 @@ int cf;
1790 1792
1791 t = command(cf); 1793 t = command(cf);
1792 1794
1793 DBGPRINTF9(("PIPELINE: t=0x%x\n", t)); 1795 DBGPRINTF9(("PIPELINE: t=%p\n", t));
1794 1796
1795 if (t != NULL) { 1797 if (t != NULL) {
1796 while ((c = yylex(0)) == '|') { 1798 while ((c = yylex(0)) == '|') {
@@ -1809,7 +1811,7 @@ int cf;
1809 peeksym = c; 1811 peeksym = c;
1810 } 1812 }
1811 1813
1812 DBGPRINTF7(("PIPELINE: returning t=0x%x\n", t)); 1814 DBGPRINTF7(("PIPELINE: returning t=%p\n", t));
1813 return (t); 1815 return (t);
1814} 1816}
1815 1817
@@ -1822,7 +1824,7 @@ static struct op *andor()
1822 1824
1823 t = pipeline(0); 1825 t = pipeline(0);
1824 1826
1825 DBGPRINTF9(("ANDOR: t=0x%x\n", t)); 1827 DBGPRINTF9(("ANDOR: t=%p\n", t));
1826 1828
1827 if (t != NULL) { 1829 if (t != NULL) {
1828 while ((c = yylex(0)) == LOGAND || c == LOGOR) { 1830 while ((c = yylex(0)) == LOGAND || c == LOGOR) {
@@ -1837,7 +1839,7 @@ static struct op *andor()
1837 peeksym = c; 1839 peeksym = c;
1838 } 1840 }
1839 1841
1840 DBGPRINTF7(("ANDOR: returning t=0x%x\n", t)); 1842 DBGPRINTF7(("ANDOR: returning t=%p\n", t));
1841 return (t); 1843 return (t);
1842} 1844}
1843 1845
@@ -1869,7 +1871,7 @@ static struct op *c_list()
1869 peeksym = c; 1871 peeksym = c;
1870 } 1872 }
1871 /* IF */ 1873 /* IF */
1872 DBGPRINTF7(("C_LIST: returning t=0x%x\n", t)); 1874 DBGPRINTF7(("C_LIST: returning t=%p\n", t));
1873 return (t); 1875 return (t);
1874} 1876}
1875 1877
@@ -2060,7 +2062,7 @@ int cf;
2060 t = namelist(t); 2062 t = namelist(t);
2061 iolist = iosave; 2063 iolist = iosave;
2062 2064
2063 DBGPRINTF(("COMMAND: returning 0x%x\n", t)); 2065 DBGPRINTF(("COMMAND: returning %p\n", t));
2064 2066
2065 return (t); 2067 return (t);
2066} 2068}
@@ -2077,7 +2079,7 @@ int mark;
2077 t = c_list(); 2079 t = c_list();
2078 multiline--; 2080 multiline--;
2079 t = block(type, t, NOBLOCK, NOWORDS); 2081 t = block(type, t, NOBLOCK, NOWORDS);
2080 DBGPRINTF(("DOWHOLEFILE: return t=0x%x\n", t)); 2082 DBGPRINTF(("DOWHOLEFILE: return t=%p\n", t));
2081 return (t); 2083 return (t);
2082} 2084}
2083 2085
@@ -2149,7 +2151,7 @@ static struct op *caselist()
2149 t = list(t, casepart()); 2151 t = list(t, casepart());
2150 } 2152 }
2151 2153
2152 DBGPRINTF(("CASELIST, returning t=0x%x\n", t)); 2154 DBGPRINTF(("CASELIST, returning t=%p\n", t));
2153 return (t); 2155 return (t);
2154} 2156}
2155 2157
@@ -2167,7 +2169,7 @@ static struct op *casepart()
2167 if ((peeksym = yylex(CONTIN)) != ESAC) 2169 if ((peeksym = yylex(CONTIN)) != ESAC)
2168 musthave(BREAK, CONTIN); 2170 musthave(BREAK, CONTIN);
2169 2171
2170 DBGPRINTF7(("CASEPART: made newtp(TPAT, t=0x%x)\n", t)); 2172 DBGPRINTF7(("CASEPART: made newtp(TPAT, t=%p)\n", t));
2171 2173
2172 return (t); 2174 return (t);
2173} 2175}
@@ -2210,7 +2212,7 @@ static char **wordlist()
2210static struct op *list(t1, t2) 2212static struct op *list(t1, t2)
2211REGISTER struct op *t1, *t2; 2213REGISTER struct op *t1, *t2;
2212{ 2214{
2213 DBGPRINTF7(("LIST: enter, t1=0x%x, t2=0x%x\n", t1, t2)); 2215 DBGPRINTF7(("LIST: enter, t1=%p, t2=%p\n", t1, t2));
2214 2216
2215 if (t1 == NULL) 2217 if (t1 == NULL)
2216 return (t2); 2218 return (t2);
@@ -2235,7 +2237,7 @@ char **wp;
2235 t->right = t2; 2237 t->right = t2;
2236 t->words = wp; 2238 t->words = wp;
2237 2239
2238 DBGPRINTF7(("BLOCK: inserted 0x%x between 0x%x and 0x%x\n", t, t1, 2240 DBGPRINTF7(("BLOCK: inserted %p between %p and %p\n", t, t1,
2239 t2)); 2241 t2));
2240 2242
2241 return (t); 2243 return (t);
@@ -2271,7 +2273,7 @@ static struct op *newtp()
2271 t->right = NULL; 2273 t->right = NULL;
2272 t->str = NULL; 2274 t->str = NULL;
2273 2275
2274 DBGPRINTF3(("NEWTP: allocated 0x%x\n", t)); 2276 DBGPRINTF3(("NEWTP: allocated %p\n", t));
2275 2277
2276 return (t); 2278 return (t);
2277} 2279}
@@ -2280,7 +2282,7 @@ static struct op *namelist(t)
2280REGISTER struct op *t; 2282REGISTER struct op *t;
2281{ 2283{
2282 2284
2283 DBGPRINTF7(("NAMELIST: enter, t=0x%x, type %s, iolist=0x%x\n", t, 2285 DBGPRINTF7(("NAMELIST: enter, t=%p, type %s, iolist=%p\n", t,
2284 T_CMD_NAMES[t->type], iolist)); 2286 T_CMD_NAMES[t->type], iolist));
2285 2287
2286 if (iolist) { 2288 if (iolist) {
@@ -2617,7 +2619,7 @@ int act;
2617 return (0); 2619 return (0);
2618 } 2620 }
2619 2621
2620 DBGPRINTF(("EXECUTE: t=0x%x, t->type=%d (%s), t->words is %s\n", t, 2622 DBGPRINTF(("EXECUTE: t=%p, t->type=%d (%s), t->words is %s\n", t,
2621 t->type, T_CMD_NAMES[t->type], 2623 t->type, T_CMD_NAMES[t->type],
2622 ((t->words == NULL) ? "NULL" : t->words[0]))); 2624 ((t->words == NULL) ? "NULL" : t->words[0])));
2623 2625
@@ -2630,7 +2632,7 @@ int act;
2630/* Hard to know how many words there are, be careful of garbage pointer values */ 2632/* Hard to know how many words there are, be careful of garbage pointer values */
2631/* They are likely to cause "PCI bus fault" errors */ 2633/* They are likely to cause "PCI bus fault" errors */
2632#if 0 2634#if 0
2633 DBGPRINTF(("EXECUTE: t->left=0x%x, t->right=0x%x, t->words[1] is %s\n", 2635 DBGPRINTF(("EXECUTE: t->left=%p, t->right=%p, t->words[1] is %s\n",
2634 t->left, t->right, 2636 t->left, t->right,
2635 ((t->words[1] == NULL) ? "NULL" : t->words[1]))); 2637 ((t->words[1] == NULL) ? "NULL" : t->words[1])));
2636 DBGPRINTF7(("EXECUTE: t->words[2] is %s, t->words[3] is %s\n", 2638 DBGPRINTF7(("EXECUTE: t->words[2] is %s, t->words[3] is %s\n",
@@ -2779,9 +2781,9 @@ int act;
2779 ((cp == NULL) ? "NULL" : cp))); 2781 ((cp == NULL) ? "NULL" : cp)));
2780 2782
2781 if ((t1 = findcase(t->left, cp)) != NULL) { 2783 if ((t1 = findcase(t->left, cp)) != NULL) {
2782 DBGPRINTF7(("EXECUTE: TCASE, calling execute(t=0x%x, t1=0x%x)...\n", t, t1)); 2784 DBGPRINTF7(("EXECUTE: TCASE, calling execute(t=%p, t1=%p)...\n", t, t1));
2783 rv = execute(t1, pin, pout, 0); 2785 rv = execute(t1, pin, pout, 0);
2784 DBGPRINTF7(("EXECUTE: TCASE, back from execute(t=0x%x, t1=0x%x)...\n", t, t1)); 2786 DBGPRINTF7(("EXECUTE: TCASE, back from execute(t=%p, t1=%p)...\n", t, t1));
2785 } 2787 }
2786 break; 2788 break;
2787 2789
@@ -2816,7 +2818,7 @@ int act;
2816 runtrap(i); 2818 runtrap(i);
2817 } 2819 }
2818 2820
2819 DBGPRINTF(("EXECUTE: returning from t=0x%x, rv=%d\n", t, rv)); 2821 DBGPRINTF(("EXECUTE: returning from t=%p, rv=%d\n", t, rv));
2820 return (rv); 2822 return (rv);
2821} 2823}
2822 2824
@@ -2852,7 +2854,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp)
2852 (void) &owp; 2854 (void) &owp;
2853#endif 2855#endif
2854 2856
2855 DBGPRINTF(("FORKEXEC: t=0x%x, pin 0x%x, pout 0x%x, act %d\n", t, pin, 2857 DBGPRINTF(("FORKEXEC: t=%p, pin %p, pout %p, act %d\n", t, pin,
2856 pout, act)); 2858 pout, act));
2857 DBGPRINTF7(("FORKEXEC: t->words is %s\n", 2859 DBGPRINTF7(("FORKEXEC: t->words is %s\n",
2858 ((t->words == NULL) ? "NULL" : t->words[0]))); 2860 ((t->words == NULL) ? "NULL" : t->words[0])));
@@ -2882,7 +2884,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp)
2882 /* strip all initial assignments */ 2884 /* strip all initial assignments */
2883 /* not correct wrt PATH=yyy command etc */ 2885 /* not correct wrt PATH=yyy command etc */
2884 if (flag['x']) { 2886 if (flag['x']) {
2885 DBGPRINTF9(("FORKEXEC: echo'ing, cp=0x%x, wp=0x%x, owp=0x%x\n", 2887 DBGPRINTF9(("FORKEXEC: echo'ing, cp=%p, wp=%p, owp=%p\n",
2886 cp, wp, owp)); 2888 cp, wp, owp));
2887 echo(cp ? wp : owp); 2889 echo(cp ? wp : owp);
2888 } 2890 }
@@ -2912,7 +2914,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp)
2912 ((t->words == NULL) ? "NULL" : t->words[0]), 2914 ((t->words == NULL) ? "NULL" : t->words[0]),
2913 ((t->words == NULL) ? "NULL" : t->words[1]))); 2915 ((t->words == NULL) ? "NULL" : t->words[1])));
2914#endif 2916#endif
2915 DBGPRINTF(("FORKEXEC: shcom 0x%x, f&FEXEC 0x%x, owp 0x%x\n", shcom, 2917 DBGPRINTF(("FORKEXEC: shcom %p, f&FEXEC 0x%x, owp %p\n", shcom,
2916 f & FEXEC, owp)); 2918 f & FEXEC, owp));
2917 2919
2918 if (shcom == NULL && (f & FEXEC) == 0) { 2920 if (shcom == NULL && (f & FEXEC) == 0) {
@@ -2958,7 +2960,7 @@ forkexec(REGISTER struct op *t, int *pin, int *pout, int act, char **wp)
2958 } 2960 }
2959 2961
2960 /* Must be the child process, pid should be 0 */ 2962 /* Must be the child process, pid should be 0 */
2961 DBGPRINTF(("FORKEXEC: child process, shcom=0x%x\n", shcom)); 2963 DBGPRINTF(("FORKEXEC: child process, shcom=%p\n", shcom));
2962 2964
2963 if (interactive) { 2965 if (interactive) {
2964 signal(SIGINT, SIG_IGN); 2966 signal(SIGINT, SIG_IGN);
@@ -3062,7 +3064,7 @@ int pipein, pipeout;
3062 REGISTER int u = -1; 3064 REGISTER int u = -1;
3063 char *cp = NULL, *msg; 3065 char *cp = NULL, *msg;
3064 3066
3065 DBGPRINTF(("IOSETUP: iop 0x%x, pipein 0x%x, pipeout 0x%x\n", iop, 3067 DBGPRINTF(("IOSETUP: iop %p, pipein %i, pipeout %i\n", iop,
3066 pipein, pipeout)); 3068 pipein, pipeout));
3067 3069
3068 if (iop->io_unit == IODEFAULT) /* take default */ 3070 if (iop->io_unit == IODEFAULT) /* take default */
@@ -3166,7 +3168,7 @@ char *w;
3166 3168
3167 if (t->type == TLIST) { 3169 if (t->type == TLIST) {
3168 if ((tp = find1case(t->left, w)) != NULL) { 3170 if ((tp = find1case(t->left, w)) != NULL) {
3169 DBGPRINTF3(("FIND1CASE: found one to the left, returning tp=0x%x\n", tp)); 3171 DBGPRINTF3(("FIND1CASE: found one to the left, returning tp=%p\n", tp));
3170 return (tp); 3172 return (tp);
3171 } 3173 }
3172 t1 = t->right; /* TPAT */ 3174 t1 = t->right; /* TPAT */
@@ -3175,7 +3177,7 @@ char *w;
3175 3177
3176 for (wp = t1->words; *wp;) 3178 for (wp = t1->words; *wp;)
3177 if ((cp = evalstr(*wp++, DOSUB)) && gmatch(w, cp)) { 3179 if ((cp = evalstr(*wp++, DOSUB)) && gmatch(w, cp)) {
3178 DBGPRINTF3(("FIND1CASE: returning &t1->left= 0x%x.\n", 3180 DBGPRINTF3(("FIND1CASE: returning &t1->left= %p.\n",
3179 &t1->left)); 3181 &t1->left));
3180 return (&t1->left); 3182 return (&t1->left);
3181 } 3183 }
@@ -3300,7 +3302,7 @@ char *c, **v, **envp;
3300 } 3302 }
3301#endif 3303#endif
3302 3304
3303 DBGPRINTF(("REXECVE: c=0x%x, v=0x%x, envp=0x%x\n", c, v, envp)); 3305 DBGPRINTF(("REXECVE: c=%p, v=%p, envp=%p\n", c, v, envp));
3304 3306
3305 sp = any('/', c) ? "" : path->value; 3307 sp = any('/', c) ? "" : path->value;
3306 asis = *sp == '\0'; 3308 asis = *sp == '\0';
@@ -3361,7 +3363,7 @@ static int run(struct ioarg *argp, int (*f) (struct ioarg *))
3361 (void) &rv; 3363 (void) &rv;
3362#endif 3364#endif
3363 3365
3364 DBGPRINTF(("RUN: enter, areanum %d, outtree 0x%x, failpt 0x%x\n", 3366 DBGPRINTF(("RUN: enter, areanum %d, outtree %p, failpt %p\n",
3365 areanum, outtree, failpt)); 3367 areanum, outtree, failpt));
3366 3368
3367 areanum++; 3369 areanum++;
@@ -3546,7 +3548,7 @@ struct op *t;
3546 char *cp; 3548 char *cp;
3547 int maltmp; 3549 int maltmp;
3548 3550
3549 DBGPRINTF(("DODOT: enter, t=0x%x, tleft 0x%x, tright 0x%x, e.linep is %s\n", t, t->left, t->right, ((e.linep == NULL) ? "NULL" : e.linep))); 3551 DBGPRINTF(("DODOT: enter, t=%p, tleft %p, tright %p, e.linep is %s\n", t, t->left, t->right, ((e.linep == NULL) ? "NULL" : e.linep)));
3550 3552
3551 if ((cp = t->words[1]) == NULL) { 3553 if ((cp = t->words[1]) == NULL) {
3552 DBGPRINTF(("DODOT: bad args, ret 0\n")); 3554 DBGPRINTF(("DODOT: bad args, ret 0\n"));
@@ -3765,7 +3767,7 @@ struct op *t;
3765 if ((cp = t->words[1]) != NULL) 3767 if ((cp = t->words[1]) != NULL)
3766 setstatus(getn(cp)); 3768 setstatus(getn(cp));
3767 3769
3768 DBGPRINTF(("DOEXIT: calling leave(), t=0x%x\n", t)); 3770 DBGPRINTF(("DOEXIT: calling leave(), t=%p\n", t));
3769 3771
3770 leave(); 3772 leave();
3771 /* NOTREACHED */ 3773 /* NOTREACHED */
@@ -3788,7 +3790,7 @@ struct op *t;
3788 3790
3789static void rdexp(char **wp, void (*f) (struct var *), int key) 3791static void rdexp(char **wp, void (*f) (struct var *), int key)
3790{ 3792{
3791 DBGPRINTF6(("RDEXP: enter, wp=0x%x, func=0x%x, key=%d\n", wp, f, key)); 3793 DBGPRINTF6(("RDEXP: enter, wp=%p, func=%p, key=%d\n", wp, f, key));
3792 DBGPRINTF6(("RDEXP: *wp=%s\n", *wp)); 3794 DBGPRINTF6(("RDEXP: *wp=%s\n", *wp));
3793 3795
3794 if (*wp != NULL) { 3796 if (*wp != NULL) {
@@ -3978,7 +3980,7 @@ int f;
3978{ 3980{
3979 struct wdblock *wb; 3981 struct wdblock *wb;
3980 3982
3981 DBGPRINTF6(("EVALSTR: enter, cp=0x%x, f=%d\n", cp, f)); 3983 DBGPRINTF6(("EVALSTR: enter, cp=%p, f=%d\n", cp, f));
3982 3984
3983 wb = NULL; 3985 wb = NULL;
3984 if (expand(cp, &wb, f)) { 3986 if (expand(cp, &wb, f)) {
@@ -4382,7 +4384,7 @@ int quoted;
4382 4384
4383 while ((i = vfork()) == -1 && errno == EAGAIN); 4385 while ((i = vfork()) == -1 && errno == EAGAIN);
4384 4386
4385 DBGPRINTF3(("GRAVE: i is %d\n", io)); 4387 DBGPRINTF3(("GRAVE: i is %p\n", io));
4386 4388
4387 if (i < 0) { 4389 if (i < 0) {
4388 closepipe(pf); 4390 closepipe(pf);
@@ -4806,10 +4808,10 @@ static int readc()
4806{ 4808{
4807 REGISTER int c; 4809 REGISTER int c;
4808 4810
4809 RCPRINTF(("READC: e.iop 0x%x, e.iobase 0x%x\n", e.iop, e.iobase)); 4811 RCPRINTF(("READC: e.iop %p, e.iobase %p\n", e.iop, e.iobase));
4810 4812
4811 for (; e.iop >= e.iobase; e.iop--) { 4813 for (; e.iop >= e.iobase; e.iop--) {
4812 RCPRINTF(("READC: e.iop 0x%x, peekc 0x%x\n", e.iop, e.iop->peekc)); 4814 RCPRINTF(("READC: e.iop %p, peekc 0x%x\n", e.iop, e.iop->peekc));
4813 if ((c = e.iop->peekc) != '\0') { 4815 if ((c = e.iop->peekc) != '\0') {
4814 e.iop->peekc = 0; 4816 e.iop->peekc = 0;
4815 return (c); 4817 return (c);
@@ -4847,7 +4849,7 @@ static int readc()
4847 } /* FOR */ 4849 } /* FOR */
4848 4850
4849 if (e.iop >= iostack) { 4851 if (e.iop >= iostack) {
4850 RCPRINTF(("READC: return 0, e.iop 0x%x\n", e.iop)); 4852 RCPRINTF(("READC: return 0, e.iop %p\n", e.iop));
4851 return (0); 4853 return (0);
4852 } 4854 }
4853 4855
@@ -4868,7 +4870,7 @@ char c;
4868 4870
4869static void pushio(struct ioarg *argp, int (*fn) (struct ioarg *)) 4871static void pushio(struct ioarg *argp, int (*fn) (struct ioarg *))
4870{ 4872{
4871 DBGPRINTF(("PUSHIO: argp 0x%x, argp->afid 0x%x, e.iop 0x%x\n", argp, 4873 DBGPRINTF(("PUSHIO: argp %p, argp->afid 0x%x, e.iop %p\n", argp,
4872 argp->afid, e.iop)); 4874 argp->afid, e.iop));
4873 4875
4874 /* Set env ptr for io source to next array spot and check for array overflow */ 4876 /* Set env ptr for io source to next array spot and check for array overflow */
@@ -4908,9 +4910,9 @@ static void pushio(struct ioarg *argp, int (*fn) (struct ioarg *))
4908 e.iop->argp->afid = bufid; /* assign buffer id */ 4910 e.iop->argp->afid = bufid; /* assign buffer id */
4909 } 4911 }
4910 4912
4911 DBGPRINTF(("PUSHIO: iostack 0x%x, e.iop 0x%x, afbuf 0x%x\n", 4913 DBGPRINTF(("PUSHIO: iostack %p, e.iop %p, afbuf %p\n",
4912 iostack, e.iop, e.iop->argp->afbuf)); 4914 iostack, e.iop, e.iop->argp->afbuf));
4913 DBGPRINTF(("PUSHIO: mbuf 0x%x, sbuf 0x%x, bid %d, e.iop 0x%x\n", 4915 DBGPRINTF(("PUSHIO: mbuf %p, sbuf %p, bid %d, e.iop %p\n",
4914 &mainbuf, &sharedbuf, bufid, e.iop)); 4916 &mainbuf, &sharedbuf, bufid, e.iop));
4915 4917
4916 } 4918 }
@@ -5130,7 +5132,7 @@ struct io *iop;
5130{ 5132{
5131 REGISTER int c; 5133 REGISTER int c;
5132 5134
5133 DBGPRINTF3(("QGRAVECHAR: enter, ap=0x%x, iop=0x%x\n", ap, iop)); 5135 DBGPRINTF3(("QGRAVECHAR: enter, ap=%p, iop=%p\n", ap, iop));
5134 5136
5135 if (iop->xchar) { 5137 if (iop->xchar) {
5136 if (iop->nlcount) { 5138 if (iop->nlcount) {
@@ -5263,7 +5265,7 @@ struct ioword *iop;
5263{ 5265{
5264 REGISTER struct here *h, *lh; 5266 REGISTER struct here *h, *lh;
5265 5267
5266 DBGPRINTF7(("MARKHERE: enter, s=0x%x\n", s)); 5268 DBGPRINTF7(("MARKHERE: enter, s=%p\n", s));
5267 5269
5268 h = (struct here *) space(sizeof(struct here)); 5270 h = (struct here *) space(sizeof(struct here));
5269 if (h == 0) 5271 if (h == 0)
@@ -5323,7 +5325,7 @@ int ec;
5323 char myline[LINELIM + 1]; 5325 char myline[LINELIM + 1];
5324 char *thenext; 5326 char *thenext;
5325 5327
5326 DBGPRINTF7(("READHERE: enter, name=0x%x, s=0x%x\n", name, s)); 5328 DBGPRINTF7(("READHERE: enter, name=%p, s=%p\n", name, s));
5327 5329
5328 tf = mkstemp(tname); 5330 tf = mkstemp(tname);
5329 if (tf < 0) 5331 if (tf < 0)