Ping?<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 5:51 PM, Daniel Kurtz <span dir="ltr"><<a href="mailto:djkurtz@chromium.org" target="_blank">djkurtz@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Input drivers like to prepend the device name to logging messages using<br>
LogVHdrMessageVerb(). The current implementation of this function used the<br>
output of a snprintf() as the format string of another snprintf(). This is a<br>
big no-no, as a device name containing format strings could cause "Bad Things"<br>
to happen.<br>
<br>
This patchset also cleans up how and when timestamps are appended to messages.<br>
There was a subtle bug when using LogVWrite() directly that could cause a<br>
timestamps written to the logfile to not correspond to the message on the<br>
same line.<br>
<br>
Daniel Kurtz (4):<br>
os/log: trivial cleanups<br>
os/xprintf: add Xvscnprintf and Xscnprintf<br>
os/log: only write timestamp if a message is actually written to<br>
logfile<br>
os/log: refactor logging<br>
<br>
include/Xprintf.h | 12 ++++++<br>
os/log.c | 105 +++++++++++++++++++++++++----------------------------<br>
os/xprintf.c | 44 ++++++++++++++++++++++<br>
3 files changed, 106 insertions(+), 55 deletions(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.7.3<br>
<br>
</font></span></blockquote></div><br>