<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-petitboot/lib/log, branch master</title>
<subtitle>Blackbird™ petitboot sources</subtitle>
<id>https://git.raptorcs.com/git/talos-petitboot/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-petitboot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/'/>
<updated>2018-08-14T01:10:07+00:00</updated>
<entry>
<title>pb_log: Break out timestamp</title>
<updated>2018-08-14T01:10:07+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2018-08-13T16:23:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=3b4f88057e95418bc548542b5b9a13910905c93d'/>
<id>urn:sha1:3b4f88057e95418bc548542b5b9a13910905c93d</id>
<content type='text'>
Fixes double timestamp on pb_log_fn, pb_debug_fn.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>discover: Add --debug to kexec</title>
<updated>2018-08-07T01:30:36+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2018-08-02T17:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=fb241b16e49ac2bd5bb14db7bc389bd4a0b1df60'/>
<id>urn:sha1:fb241b16e49ac2bd5bb14db7bc389bd4a0b1df60</id>
<content type='text'>
If verbose logging is enabled then add '--debug' to the kexec command line.
Adds a new routine pb_log_get_debug() that can be used to query the log
debug state.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>lib/log: Add verbose logging routines</title>
<updated>2018-08-07T01:30:36+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2018-08-02T17:29:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=679d9dceb5bdf51f118548ca2645dc81088a8974'/>
<id>urn:sha1:679d9dceb5bdf51f118548ca2645dc81088a8974</id>
<content type='text'>
Add three new logging routines pb_log_fn and pb_debug_fn, which
print the calling function's name to the log, and pb_debug_fl
which prints the calling function's name and the file line
number to the log.

Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>lib/log: Include timestamp prefix</title>
<updated>2018-07-30T04:17:05+00:00</updated>
<author>
<name>Samuel Mendoza-Jonas</name>
<email>sam@mendozajonas.com</email>
</author>
<published>2018-07-30T01:48:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=b0c603d007174e75452c1c14402d62d305da76ab'/>
<id>urn:sha1:b0c603d007174e75452c1c14402d62d305da76ab</id>
<content type='text'>
The relative time between logged events is very useful during debugging,
particularly when debugging autoboot failures. Prepend a short HH:MM:SS
timestamp to each line logged.

Signed-off-by: Samuel Mendoza-Jonas &lt;sam@mendozajonas.com&gt;
</content>
</entry>
<entry>
<title>log: Allow runtime selection of 'debug' log level</title>
<updated>2014-04-07T03:49:08+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2014-04-04T05:05:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=ae3c354e844698bdb4ed35a6845aa9dca1e9205f'/>
<id>urn:sha1:ae3c354e844698bdb4ed35a6845aa9dca1e9205f</id>
<content type='text'>
Currently, we need to compile with -DDEBUG to implement debug-level
logging in the UIs and discover server.

Since we may not be able to easily replace a system's petitboot
binaries, this change introduces a -v|--verbose option to the discver
server and ncurses UI, which enables debug at runtime. We also move some
of the udev debug code out of an #ifdef DEBUG block.

Since petitboot is generally started on boot, we also add a little
infrastructure to pass -v to petitboot on certain system contitions:
either petitboot.debug on the kernel command line, or a petitboot,debug?
NVRAM property containing the value 'true'.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/log: Always flush after writing logs</title>
<updated>2013-11-01T07:32:54+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-11-01T02:33:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=b08de841267546726f452c89cc326a493ec6549c'/>
<id>urn:sha1:b08de841267546726f452c89cc326a493ec6549c</id>
<content type='text'>
We're currently seeing empty log files from the discover server. Rather
than only flishing if the server was compiled with debugging enabled,
always perform the fflush.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>lib/log: Cleanup log API</title>
<updated>2013-09-19T13:36:32+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2013-09-19T04:18:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=307b4b091e0bc298964e90888bf179431e32c134'/>
<id>urn:sha1:307b4b091e0bc298964e90888bf179431e32c134</id>
<content type='text'>
Rather than exposing log internals (through always_flush and
set_stream), do all logging init through pb_log_init(). If pb_log_init()
hasn't been called, pb_log will drop messages.

Also, add a pb_debug() function, specifically for debugging information.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
<entry>
<title>Log to stderr, allow --log=-</title>
<updated>2012-03-27T02:23:17+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoff@infradead.org</email>
</author>
<published>2012-03-27T02:23:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=09cc1ef3d7e2c1dab6648aceb24dd33e7897f998'/>
<id>urn:sha1:09cc1ef3d7e2c1dab6648aceb24dd33e7897f998</id>
<content type='text'>
Signed-off-by: Geoff Levand &lt;geoff@infradead.org&gt;
</content>
</entry>
<entry>
<title>Fix seg fault on ps3 flash error</title>
<updated>2009-08-26T00:40:00+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoffrey.levand@am.sony.com</email>
</author>
<published>2009-08-26T00:25:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=d29c9620cd853d9ead31075f237f53b9e6301a52'/>
<id>urn:sha1:d29c9620cd853d9ead31075f237f53b9e6301a52</id>
<content type='text'>
Signed-off-by: Geoff Levand &lt;geoffrey.levand@am.sony.com&gt;
</content>
</entry>
<entry>
<title>Get log stream</title>
<updated>2009-03-30T09:20:00+00:00</updated>
<author>
<name>Geoff Levand</name>
<email>geoffrey.levand@am.sony.com</email>
</author>
<published>2009-03-25T12:35:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-petitboot/commit/?id=5d0a6df4644525bf5fbd9d98f3aa4a23a0c03cb4'/>
<id>urn:sha1:5d0a6df4644525bf5fbd9d98f3aa4a23a0c03cb4</id>
<content type='text'>
Add a new convenience routine pb_log_get_stream() that returns the
current PB_log stream.  Used to setup the ps3-utils library to log
to the pb_log.

Signed-off-by: Geoff Levand &lt;geoffrey.levand@am.sony.com&gt;
Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
</content>
</entry>
</feed>
