RB_POWERCYCLE needs to be handled like RB_POWEROFF for decoding.

Sponsored by: Netflix
This commit is contained in:
Warner Losh 2017-10-25 15:30:25 +00:00
parent 06828ffb88
commit dae8f61f5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324984

View File

@ -647,9 +647,9 @@ sysdecode_reboot_howto(FILE *fp, int howto, int *rem)
/*
* RB_AUTOBOOT is special in that its value is zero, but it is
* also an implied argument if a different operation is not
* requested via RB_HALT, RB_POWEROFF, or RB_REROOT.
* requested via RB_HALT, RB_POWERCYCLE, RB_POWEROFF, or RB_REROOT.
*/
if (howto != 0 && (howto & (RB_HALT | RB_POWEROFF | RB_REROOT)) == 0) {
if (howto != 0 && (howto & (RB_HALT | RB_POWEROFF | RB_REROOT | RB_POWERCYCLE)) == 0) {
fputs("RB_AUTOBOOT|", fp);
printed = true;
} else