Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD master CVS tree commits



cgd
Tue Feb 20 18:56:27 EST 1996
Update of /a/cvsroot/src/sys/kern
In directory pain.lcs.mit.edu:/a/var_tmp/cvs-serv9543

Modified Files:
        kern_malloc.c 
Log Message:
when printing data modified on the free list:
        (1) do not cast it to (void *), and
        (2) print it as 0x%x, rather than %p.
This is not perfect (because the data being printed is "int32_t"-sized), but
is more correct than printing it as a pointer because the data is _not_ a
pointer, it is data to be printed in hex, and on some systems, pointers are
wider than the data items being printed, which leads to excess and misleading
output.  The only 'right' solution to this is to have a printf specifier
that prints the fixed-sized types the right way, and that's not really
practical.




Home | Main Index | Thread Index | Old Index