From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=in.ibm.com (client-ip=148.163.158.5; helo=mx0a-001b2d01.pphosted.com; envelope-from=devenrao@in.ibm.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=in.ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47N81y18sRzDqhD for ; Wed, 27 Nov 2019 16:08:53 +1100 (AEDT) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAR574OT191812 for ; Wed, 27 Nov 2019 00:08:50 -0500 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.90]) by mx0b-001b2d01.pphosted.com with ESMTP id 2whh5dtmmw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Nov 2019 00:08:50 -0500 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Wed, 27 Nov 2019 05:08:49 -0000 Received: from us1a3-smtp02.a3.dal06.isc4sb.com (10.106.154.159) by smtp.notes.na.collabserv.com (10.106.227.141) with smtp.notes.na.collabserv.com ESMTP; Wed, 27 Nov 2019 05:08:46 -0000 Received: from us1a3-mail121.a3.dal06.isc4sb.com ([10.146.45.16]) by us1a3-smtp02.a3.dal06.isc4sb.com with ESMTP id 2019112705084621-64307 ; Wed, 27 Nov 2019 05:08:46 +0000 In-Reply-To: From: "Devender Rao" To: ckimchan17@gmail.com Cc: openbmc@lists.ozlabs.org Date: Wed, 27 Nov 2019 05:08:45 +0000 Sensitivity: MIME-Version: 1.0 References: Importance: Normal X-Priority: 3 (Normal) X-Mailer: IBM Verse Build 17652-1661 | IBM Domino Build SCN1812108_20180501T0841_FP62 November 04, 2019 at 09:47 X-LLNOutbound: False X-Disclaimed: 16799 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 x-cbid: 19112705-3649-0000-0000-0000017600B4 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.417846; ST=0; TS=0; UL=0; ISC=; MB=0.000000 X-IBM-SpamModules-Versions: BY=3.00012174; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000292; SDB=6.01295997; UDB=6.00687828; IPR=6.01078245; MB=3.00029731; MTD=3.00000008; XFM=3.00000015; UTC=2019-11-27 05:08:48 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2019-11-27 04:02:12 - 6.00010698 x-cbparentid: 19112705-3650-0000-0000-000016825E5F Message-Id: Subject: Re: phosphor logging X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-26_08:2019-11-26,2019-11-26 signatures=0 X-Proofpoint-Spam-Reason: safe X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 05:08:55 -0000
try "journalctl -o json-pretty > /tmp/logfile" a= nd in the log file search for "HASSIS=5FREQUESTED=5FPOWER=5FSTATE"
 
----- Original message -----
From: Jeff Chan <ckim= chan17@gmail.com>
Sent by: "openbmc" <openbmc-bounces+devenrao=3Di= n.ibm.com@lists.ozlabs.org>
To: openbmc@lists.ozlabs.org
Cc:
Su= bject: [EXTERNAL] phosphor logging
Date: Wed, Nov 27, 2019 8:11 AM
&n= bsp;
Dear openbmc developer,
 
I'm debugging chassis power on issue, and found that I can't use journ= alctl to display debug information, for example:
 
in chassis=5Fstate=5Fmanager.cpp
Chassis::Transition = Chassis::r= equestedPowerTransition(Transition val= ue)
{
 
log<level= ::INFO>= ("Change to Chassis Requeste= d Power State",
entry("CHAS= SIS=5FREQUESTED=5FPOWER=5FSTATE=3D%s",
convertForMessage(value).c=5Fstr()));
executeTransition(value);
return serve= r::Chassis= ::requestedPowerTransition(value);
}
 
but journalctl only display "C= hange to Chassis Requested Power State", the "CHASSIS=5FREQUESTED=5F= POWER=5FSTATE=3D%s" part is missed, can someone tell me how to get it back?= I tried google but can't find the answer.
 
 
And that will be great if someone can guide me how to port and debug p= ower control, I tried "obmutil chassison" in debug console but doesn't work= . I can't find detailed document about porting.
 
Thank you!
 
Jeff