From a9dadc11fb8afb9423df7118ff5f07a4b49ffe13 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 4 Jan 2019 23:23:27 +0800 Subject: do_smbus_op: add printk --- src/northbridge/intel/haswell/mrc_misc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/northbridge/intel/haswell/mrc_misc.c b/src/northbridge/intel/haswell/mrc_misc.c index b91c12c27c..569d127a64 100644 --- a/src/northbridge/intel/haswell/mrc_misc.c +++ b/src/northbridge/intel/haswell/mrc_misc.c @@ -846,6 +846,10 @@ int MRCABI do_smbus_op(EFI_SMBUS_OPERATION op, u32 addr_desc, void *buf, int *re const EFI_PEI_SERVICES **pps = *gpPei; (*pps)->LocatePpi(pps, &gEfiPeiSmbusPpiGuid, 0, NULL, (void**)&smbus); + + printk(BIOS_DEBUG, "do_smbus_op, op = %d, addr = 0x%02x, cmd = 0x%x.\n", + (u32)op, (u32)sa.SmbusDeviceAddress, (u32)cmd); + int ret = smbus->Execute((EFI_PEI_SERVICES**)pps, smbus, sa, cmd, op, PecCheck, &length, buf); -- cgit v1.2.3