What if you export them in the shell environment before running your
program? As in,
$export OPENHPI_DEBUG=YES
$export OPENHPI_TRACE=YES
I *think* that's what I did, but it's been so long I can't swear to it..
Jason
________________________________
From: grisha gringauz [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2008 10:46 AM
To: [email protected]
Subject: Re: [Openhpi-devel] openhpi daemon debug and trace messages
Thannks, now I changed my program to:
#include <unistd.h>
int main(int argc, char *argv[])
{
setenv("OPENHPI_DEBUG", "YES");
setenv("OPENHPI_TRACE", "YES");
execv("/etc/init.d/openhpid", argv);
return 0;
}
but it still doesn't work, I still don't see any messages written to
stderr.
On Mon, Oct 6, 2008 at 3:59 PM, Vaupotic Marko
<[EMAIL PROTECTED]> wrote:
Use OPENHPI_DEBUG and OPENHPI_TRACE variables as defined in
include/oh_error.h
Marko
> Hello,
> I looked at the source of the openhpi daemon and saw that it has dbg
and trace messages.
> Is there a way to see these messages?
> I tried to do it by writing the following program:
>
> #include <unistd.h>
>
> int main(int argc, char *argv[])
> {
> setenv("OH_DBG", "YES");
> setenv("OH_TRACE", "YES");
> execv("/etc/init.d/openhpid", argv);
> return 0;
> }
>
> but it didn't work, I still don't see any messages written to stderr.
>
> Thanks
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openhpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openhpi-devel