@@ -366,7 +366,7 @@ impl VCore {
366366 . map ( |s| s. 0 ) ;
367367 ringbuf_entry ! ( Trace :: StatusMfrSpecific ( rail, status_mfr) ) ;
368368
369- let status = PmbusStatus {
369+ let pmbus_status = PmbusStatus {
370370 word : status_word. map ( |s| s. 0 ) . ok ( ) ,
371371 input : status_input. ok ( ) ,
372372 vout : status_vout. ok ( ) ,
@@ -377,12 +377,12 @@ impl VCore {
377377 } ;
378378
379379 let ereport = Ereport {
380- k : "pmbus.alert" ,
380+ k : "hw.pwr. pmbus.alert" ,
381381 v : 0 ,
382382 rail,
383- dev_id : device. i2c_device ( ) . component_id ( ) ,
383+ refdes : device. i2c_device ( ) . component_id ( ) ,
384384 time : now,
385- status ,
385+ pmbus_status ,
386386 pwr_good : power_good,
387387 } ;
388388 match self . packrat . serialize_ereport ( & ereport, ereport_buf) {
@@ -397,6 +397,8 @@ impl VCore {
397397 ringbuf_entry ! ( Trace :: EreportTooBig ( rail) )
398398 }
399399 }
400+ // TODO(eliza): if POWER_GOOD has been deasserted, we should produce a
401+ // subsequent ereport for that.
400402
401403 RegulatorState {
402404 faulted,
@@ -409,11 +411,11 @@ impl VCore {
409411struct Ereport {
410412 k : & ' static str ,
411413 v : usize ,
412- dev_id : & ' static str ,
414+ refdes : & ' static str ,
413415 rail : Rail ,
414416 time : u64 ,
415417 pwr_good : Option < bool > ,
416- status : PmbusStatus ,
418+ pmbus_status : PmbusStatus ,
417419}
418420
419421#[ derive( Copy , Clone , Default , Serialize ) ]
0 commit comments