[PATCH] mptutil(8) - capture errors and percolate up to caller
Garrett Cooper
yanegomi at gmail.com
Sat Nov 6 08:13:25 UTC 2010
Similar to r214396, this patch deals with properly capturing error
and passing it up to the caller in mptutil just in case the errno
value gets stomped on by warn*(3); this patch deals with an improper
use of warn(3), and also some malloc(3) errors, as well as shrink down
some static buffers to fit the data being output.
If someone could review and help me commit this patch it would be
much appreciated; all I could do is run negative tests on my local box
and minor positive tests on my vmware fusion instance because it
doesn't fully emulate a fully working mpt(4) device (the vmware
instance consistently crashed with a warning about the mpt
controller's unimplemented features after I poked at it enough).
I'll submit another patch to fix up style(9) in this app if requested.
Thanks!
-Garrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mptutil-capture-errno-values.patch
Type: text/x-patch
Size: 34307 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20101106/c8b538d1/mptutil-capture-errno-values-0001.bin
More information about the freebsd-hackers
mailing list