aboutsummaryrefslogtreecommitdiff
path: root/lib/libsysdecode
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-25 15:30:25 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-25 15:30:25 +0000
commitdae8f61f5b3fa041968d17f76bf691ea278ab838 (patch)
treeec6fbcb44974dfa0f24c9c0791c7069719a09ce9 /lib/libsysdecode
parent06828ffb88e0b40c9f50e00460647889e8a43d87 (diff)
Notes
Diffstat (limited to 'lib/libsysdecode')
-rw-r--r--lib/libsysdecode/flags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libsysdecode/flags.c b/lib/libsysdecode/flags.c
index 31ac33a8391c..95cc8da462cb 100644
--- a/lib/libsysdecode/flags.c
+++ b/lib/libsysdecode/flags.c
@@ -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