🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7497

printf in SunOS kernel is different

#7497
From: Elliott McCrory
Date: Thu, 18 Apr 1991 15:30
8 lines
797 bytes
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);
Technical Details
Message-ID: <2536@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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