From: Nurdin Premji <npremji@redhat.com>
To: Frysk List <frysk@sourceware.org>
Subject: Added cni logging methods.
Date: Fri, 23 Feb 2007 21:11:00 -0000 [thread overview]
Message-ID: <45DF585C.2050806@redhat.com> (raw)
I've added some methods to frysk/sys/cni/Errno.hxx called:
logMessage (jobject myThis, Logger logger, Level level, char* msg, ...)
this will print a log message to the given logger where msg, ... is a
printf style message, so you can check values of ints and pointers and such.
jLogMessage (jobject myThis, Logger logger, Level level, char * msg, ...)
this will print a log message to the given logger where msg should be a
string of the form:
"functionName Object value: {1} Object2 value: {2} ..." followed by
jobjects for each value.
Note that both methods should be called with the first argument as
"this" and prepend a "{0} " to the front of the string so that the
object gets printed out.
reply other threads:[~2007-02-23 21:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=45DF585C.2050806@redhat.com \
--to=npremji@redhat.com \
--cc=frysk@sourceware.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).