<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 4, 2009, at 2:04 PM, Aaron Gray wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div bgcolor="#ffffff" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font face="Arial" size="2"><span class="Apple-style-span" style="word-spacing: 0px; font: normal normal normal medium/normal Helvetica; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div type="cite" bgcolor="#ffffff"><div><font face="Arial" size="2">>>How do output hex in DOUT's ?</font></div></div></span><font face="Arial" size="2"></font><font face="Arial" size="2"></font><font face="Arial" size="2"></font><div><br></div>>Please don't use DOUT, please use:<div><font face="Arial" size="2"></font><font face="Arial" size="2"></font>><br></div><div>>  DEBUG(errs() << stuff);</div><div><font face="Arial" size="2"></font><font face="Arial" size="2"></font>><br></div><div>>instead.</div><div> </div><div>Okay, I will modify my code. But how do I do hexadecimal output ?</div><div> </div></font></div></div></span></blockquote><br></div><div>raw_ostream has a write_hex method.</div><div><br></div><div>O << "foo: ";</div><div>O.write_hex(42);</div><div>...</div><div><br></div><div>-Chris</div><br></body></html>