Skip to content

Commit edef276

Browse files
committed
Swap nextboot and reboot in list
Fixes #11
1 parent 694f5a0 commit edef276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zectl_list.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ print_bes(nvlist_t **bootenvs, list_options_t *options) {
108108
boolean_t nextboot;
109109
if (nvlist_lookup_boolean_value(be_props, "nextboot", &nextboot) == 0) {
110110
if (nextboot) {
111-
strcat(active_buff, "N");
111+
strcat(active_buff, "R");
112112
}
113113
}
114114
boolean_t active;
115115
if (nvlist_lookup_boolean_value(be_props, "active", &active) == 0) {
116116
if (active) {
117-
strcat(active_buff, "R");
117+
strcat(active_buff, "N");
118118
}
119119
}
120120
printf("%-*s%s", (int) widths.active, active_buff, tab_suffix);

0 commit comments

Comments
 (0)