9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9fans@9fans.net
Subject: Re: [9fans] print() in kernel space doesn't work like I would think
Date: Thu, 31 Aug 2023 12:27:42 -0400	[thread overview]
Message-ID: <F6E26D117149669578D39EFED393A5DA@eigenstate.org> (raw)
In-Reply-To: <16934966380.ebCb.544220@composer.9fans.topicbox.com>

Quoth dusan3sic@gmail.com:
> 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.

show your diff.

(hint: bind -ac /dist/plan9front / && git/diff /sys/src/9 | webpaste)


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te1d00dae663114b2-M56ffb2bd609da38808a99006
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  parent reply	other threads:[~2023-08-31 16:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-31 15:43 dusan3sic
2023-08-31 15:48 ` Steve Simon
2023-08-31 16:27 ` ori [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F6E26D117149669578D39EFED393A5DA@eigenstate.org \
    --to=ori@eigenstate.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).