Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: mccrory@tomato.fnal.gov (Elliott McCrory) Newsgroups: comp.sys.sun Subject: printf in SunOS kernel is different Keywords: SunOS Message-ID: <2536@brchh104.bnr.ca> Date: 18 Apr 91 15:30:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 8 Approved: Sun-Spots@rice.edu X-Original-Date: 17 Apr 91 14:38:25 GMT X-Sun-Spots-Digest: Volume 10, Issue 76, message 10 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu 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);