From 291223ea20d8119986899821dcff7520c8f128f9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 24 Apr 2019 16:17:49 -0600 Subject: [PATCH] Print errors --- system76-coreboot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system76-coreboot.c b/system76-coreboot.c index b400746..8c1f2b0 100644 --- a/system76-coreboot.c +++ b/system76-coreboot.c @@ -270,8 +270,12 @@ static int system76_add(struct acpi_device *acpi_dev) { if (lpc_cmd(&lpc, 0xA8, 1000000)) { u8 data = 0; if (lpc_read(&lpc, &data, 1000000)) { - printk("system76 ec devices: 0x%x\n", data); + printk("system76-coreboot: EC devices: 0x%x\n", data); + } else { + printk("system76-coreboot: failed to read EC devices\n"); } + } else { + printk("system76-coreboot: failed to probe EC devices\n"); } return 0;