diff options
author | Iru Cai <mytbk920423@gmail.com> | 2019-01-04 23:23:27 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2019-11-17 15:10:47 +0800 |
commit | a9dadc11fb8afb9423df7118ff5f07a4b49ffe13 (patch) | |
tree | 2375b2f0b263e03021f47ebdeadaa0999d2fb60a /src/northbridge | |
parent | 9f714c7013ab876f0dfe4d601e5c1df5cc69fc0f (diff) | |
download | coreboot-a9dadc11fb8afb9423df7118ff5f07a4b49ffe13.tar.xz |
do_smbus_op: add printk
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/intel/haswell/mrc_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |