9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] print() in kernel space doesn't work like I would think
@ 2023-08-31 15:43 dusan3sic
  2023-08-31 15:48 ` Steve Simon
  2023-08-31 16:27 ` ori
  0 siblings, 2 replies; 12+ messages in thread
From: dusan3sic @ 2023-08-31 15:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

I was editing plan9's realtime scheduler in /sys/src/9/port/edf.c and was trying to add a print to log something, but print didn't show anywhere(or I am looking at the wrong place). It has some prints in source code already, with this define.
#define DPRINT  if(Dontprint){}else print
And with Dontprint set to 0

I was expecting the output to be at boot time, in boot screen where it asks for bootargs, but it wasn't there. I thought it was either the wrong place I am looking at or it prints after I start the gui so I don't get to see it. 

Then i tried other prints,  iprint() seemed really cool and usefull but it does nothing. It builds ok, but doesn't output anything on serial (on Qemu serial window). Also, it didn't work in some user space program I made to test it. 

All I want is to have a normal log system so I can log things on screen.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-M7023d44f6d581fa0bf266fef
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1946 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-01 10:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-31 15:43 [9fans] print() in kernel space doesn't work like I would think dusan3sic
2023-08-31 15:48 ` Steve Simon
2023-08-31 16:27 ` ori
2023-08-31 16:31   ` ori
2023-08-31 16:46     ` dusan3sic
2023-08-31 16:58       ` dusan3sic
2023-08-31 17:25         ` dusan3sic
2023-08-31 17:34           ` ori
2023-09-01 10:59             ` dusan3sic
2023-08-31 19:42           ` ori
2023-08-31 16:53     ` dusan3sic
2023-08-31 17:20       ` ori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).