printf in SunOS kernel is different

Elliott McCrory mccrory at tomato.fnal.gov
Fri Apr 19 01:30:00 AEST 1991


I have discovered that the following printf, when used in the SunOS 4.1
kernel, causes a crash (data fault):

	printf("%04x", (short int) kernel_variable);

but this printf is okay:

	printf("%x", (short int) kernel_variable);



More information about the Comp.sys.sun mailing list