mb/lenovo: Prepend EC event number with 0x to denote hex notation
Currently, the message below is printed, suggesting it’s decimal notation: coreboot-4.12-1530-g7acbd5fc45 Sun Jul 19 07:47:58 UTC 2020 smm starting (log level: 7)... EC event 48 GPI (mask 1000) Prepend 0x, so it’s clear it’s hexadecimal notation. EC event 0x48 Use the command below change all places: git grep -l 'EC event %02x' | xargs sed -i 's/EC event %02x/EC event %#02x/' Change-Id: I8d1e6434a0e550c5a19576f9f7fea05e7a812e49 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43585 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
4907e62893
commit
56642930ab
|
@ -21,7 +21,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -23,7 +23,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
|
||||
switch (event) {
|
||||
case 0x18:
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -90,7 +90,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
|
||||
switch (event) {
|
||||
/* brightness up */
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -23,7 +23,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
|
||||
switch (event) {
|
||||
case 0x18:
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -20,7 +20,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
|
@ -92,7 +92,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
|
||||
switch (event) {
|
||||
/* brightness up */
|
||||
|
|
|
@ -112,7 +112,7 @@ static void mainboard_smi_handle_ec_sci(void)
|
|||
return;
|
||||
|
||||
event = ec_query();
|
||||
printk(BIOS_DEBUG, "EC event %02x\n", event);
|
||||
printk(BIOS_DEBUG, "EC event %#02x\n", event);
|
||||
}
|
||||
|
||||
void mainboard_smi_gpi(u32 gpi_sts)
|
||||
|
|
Loading…
Reference in New Issue