<div dir="auto">Hi Tim,<div>Thanks a lot for your help. <br><br>Jeff</div></div><div style="line-height:1.5"><br><br>-------- 原始郵件 --------<br>寄件者: CS20 CHLi30 <CHLI30@nuvoton.com><br>日期: 2019年11月27日 週三 10:49<br>收件人: Jeff Chan <ckimchan17@gmail.com>, openbmc@lists.ozlabs.org<br>主旨: RE: phosphor logging<br><blockquote><div>
<div>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d">Hi Jeff,</span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d">You need to use “-o verbose” when you using journalctl command as below:</span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d">journalctl --system --no-pager -o verbose</span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d">Best regards,</span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d">Tim</span></p>
<p><span style="font-family:'calibri' , sans-serif;color:#1f497d"> </span></p>
<p><b><span style="font-size:11pt;font-family:'calibri' , sans-serif">From:</span></b><span style="font-size:11pt;font-family:'calibri' , sans-serif"> openbmc [mailto:openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org]
<b>On Behalf Of </b>Jeff Chan<br />
<b>Sent:</b> Wednesday, November 27, 2019 10:40 AM<br />
<b>To:</b> openbmc@lists.ozlabs.org<br />
<b>Subject:</b> phosphor logging</span></p>
<p> </p>
<div>
<div>
<p>Dear openbmc developer,</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>I'm debugging chassis power on issue, and found that I can't use journalctl to display debug information, for example:</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>in chassis_state_manager.cpp</p>
</div>
<div>
<div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">Chassis</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">::</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">Transition</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">Chassis</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">::</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">requestedPowerTransition</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">(</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">Transition</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#9cdcfe">value</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">)</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">{<!-- --></span></p>
</div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4"> </span></p>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">log</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4"><</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">level</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">::</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">INFO</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">>(</span><span style="font-size:10.5pt;font-family:'courier new';color:#ce9178">"Change
to Chassis Requested Power State"</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">,</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">entry</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">(</span><span style="font-size:10.5pt;font-family:'courier new';color:#ce9178">"CHASSIS_REQUESTED_POWER_STATE=%s"</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">,</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">convertForMessage</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">(value).</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">c_str</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">()));</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">executeTransition</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">(value);</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#c586c0">return</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">
</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">server</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">::</span><span style="font-size:10.5pt;font-family:'courier new';color:#4ec9b0">Chassis</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">::</span><span style="font-size:10.5pt;font-family:'courier new';color:#dcdcaa">requestedPowerTransition</span><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">(value);</span></p>
</div>
<div>
<p style="line-height:14.25pt;background:#1e1e1e"><span style="font-size:10.5pt;font-family:'courier new';color:#d4d4d4">}</span></p>
</div>
</div>
</div>
<div>
<p> </p>
</div>
<div>
<p>but journalctl only display <span style="color:#ce9178">
"Change to Chassis Requested Power State"</span>, the "CHASSIS_REQUESTED_POWER_STATE=%s" part is missed, can someone tell me how to get it back? I tried google but can't find the answer.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>And that will be great if someone can guide me how to port and debug power control, I tried "obmutil chassison" in debug console but doesn't work. I can't find detailed document about porting.</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>Thank you!</p>
</div>
<div>
<p> </p>
</div>
<div>
<p>Jeff</p>
</div>
<div>
<p> </p>
</div>
<div>
<p> </p>
</div>
<div>
<p> </p>
</div>
<div>
<p> </p>
</div>
</div>
</div>
<hr align="center" width="100%" />
<span style="font-size:12pt;line-height:0.7;font-family:'arial';color:#808080">The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the
addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly
appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
</span>
</div>
</blockquote></div>