diff --git a/usr.sbin/efitable/efitable.c b/usr.sbin/efitable/efitable.c --- a/usr.sbin/efitable/efitable.c +++ b/usr.sbin/efitable/efitable.c @@ -31,7 +31,7 @@ #include #include #include -#include + #include #include #include @@ -211,7 +211,8 @@ xo_close_list("entries"); xo_close_container("esrt"); - xo_finish(); + if (xo_finish() < 0) + xo_err(EXIT_FAILURE, "stdout"); } static void @@ -229,7 +230,8 @@ "{:memory_protection_attribute/%#lx}\n", prop->memory_protection_attribute); xo_close_container("prop"); - xo_finish(); + if (xo_finish() < 0) + xo_err(EXIT_FAILURE, "stdout"); } static void usage(void)