Date: Thu, 22 Jan 2009 16:36:23 GMT From: Stacey Son <sson@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 156529 for review Message-ID: <200901221636.n0MGaNPc037237@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156529 Change 156529 by sson@sson_amd64 on 2009/01/22 16:36:21 Fix bug in printing data in hex so it prints leading "0". Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#61 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#61 (text+ko) ==== @@ -32,7 +32,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#60 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#61 $ */ #include <sys/types.h> @@ -193,7 +193,7 @@ if (len > 0) { fprintf(fp, "0x"); for (i = 0; i < len; i++) - fprintf(fp, "%x", data[i]); + fprintf(fp, "%02x", data[i]); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901221636.n0MGaNPc037237>