mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
"status_reg.acpwr ? 1 : 0" is now the same as just "status_reg.acpwr".
This commit is contained in:
parent
02f4627c40
commit
1ab62874ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284190
@ -131,7 +131,7 @@ am335x_pmic_intr(void *arg)
|
||||
shutdown_nice(RB_POWEROFF);
|
||||
if (int_reg.aci) {
|
||||
snprintf(notify_buf, sizeof(notify_buf), "notify=0x%02x",
|
||||
status_reg.acpwr ? 1 : 0);
|
||||
status_reg.acpwr);
|
||||
devctl_notify_f("ACPI", "ACAD", "power", notify_buf, M_NOWAIT);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user