/* -*-C-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/xdebug.c,v 9.27 1990/06/20 17:42:45 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/xdebug.c,v 9.28 1992/02/03 23:51:07 jinx Exp $
-Copyright (c) 1987, 1988, 1989 Massachusetts Institute of Technology
+Copyright (c) 1987-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
occurrences += 1;
if (print_p)
#ifndef b32
- printf("Location = 0x%x; Contents = 0x%x\n",
+ printf("Location = 0x%lx; Contents = 0x%lx\n",
((long) Where), ((long) (*Where)));
#else
- printf("Location = 0x%08x; Contents = 0x%08x\n",
+ printf("Location = 0x%08lx; Contents = 0x%08lx\n",
((long) Where), ((long) (*Where)));
#endif
if (store_p)
{
putchar('\n');
#ifndef b32
- printf("*** Looking for Obj = 0x%x; Find_Mode = %2d ***\n",
- Obj, Find_Mode);
+ printf("*** Looking for Obj = 0x%lx; Find_Mode = %2ld ***\n",
+ ((long) Obj), ((long) Find_Mode));
#else
- printf("*** Looking for Obj = 0x%08x; Find_Mode = %2d ***\n",
- Obj, Find_Mode);
+ printf("*** Looking for Obj = 0x%08lx; Find_Mode = %2ld ***\n",
+ ((long) Obj), ((long) Find_Mode));
#endif
}
n += Find_In_Area("Constant Space",
fast SCHEME_OBJECT *End = &Where[How_Many];
#ifndef b32
- printf("\n*** Memory from 0x%x to 0x%x (excluded) ***\n", Where, End);
+ printf ("\n*** Memory from 0x%lx to 0x%lx (excluded) ***\n",
+ ((long) Where), ((long) End));
while (Where < End)
{
- printf("0x%x\n", *Where++);
+ printf ("0x%lx\n", ((long) (*Where++)));
}
#else
- printf("\n*** Memory from 0x%08x to 0x%08x (excluded) ***\n", Where, End);
+ printf ("\n*** Memory from 0x%08lx to 0x%08lx (excluded) ***\n",
+ ((long) Where), ((long) End));
while (Where < End)
{
- printf("0x%08x\n", *Where++);
+ printf ("0x%0l8x\n", ((long) (*Where++)));
}
#endif
- printf("Done.\n");
+ printf ("Done.\n");
return;
}
\f
PRIMITIVE_HEADER (1);
environment = (ARG_REF (1));
- printf ("\n*** Environment = 0x%x ***\n", environment);
+ printf ("\n*** Environment = 0x%lx ***\n", ((long) environment));
Show_Env (environment);
PRIMITIVE_RETURN (UNSPECIFIC);
}
printf ("\nNot interned.\n");
else
{
- printf ("\nInterned Symbol: 0x%x", symbol);
+ printf ("\nInterned Symbol: 0x%lx", ((long) symbol));
Print_Expression (MEMORY_REF (symbol, SYMBOL_GLOBAL_VALUE), "Value");
printf ("\n");
}