[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] Re: dump to file
From: |
Anand Babu |
Subject: |
[Freeipmi-devel] Re: dump to file |
Date: |
Tue, 18 Nov 2003 11:22:37 -0800 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Albert Chu <address@hidden> writes:
>> 1) Why not let those functions dump to file. We can also pass "stderr"
>> or "stdout" if we want it on console.
>
> Yeah, I'm thinking you're right on this. We should pass a "stream"
> parameter, and the stream parameter can be to a stream to anything ...
Lets pass file descriptor. If some one wants stream, he can pass
fileno (stderr) otherwise just 2 or DEBUG_DEFAULT_FILE (macro for 2)
>> 2) Do we need prefix every line with redundant "prefix err" ?
>
> In ipmipower, someone can do
>
> ./ipmipower -h nodes[0-5] --on
>
> And packets are sent out and received in parallel. In ipmipower, I
> originally wrote the _dump functions with "Hostname = foobarnode" at the
> begining of each packet dump, to differentiate which packets were
> sent/recved from which hosts. But I felt that this is difficult to look
> at. I think the prefix will make it easier to look at. What do ya think??
Lets have the prefix string. If prefix is NULL, then ignore the " : " as well.
--
_.|_
(_||_)
Free as in Freedom <www.gnu.org>