From nobody Wed Apr 03 18:33:09 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V8tfZ1H1jz5FZsx; Wed, 3 Apr 2024 18:33:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8tfY4XzCz4Bqk; Wed, 3 Apr 2024 18:33:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712169189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nvpNFkH2R4YIOF5tqpSthEpo1qfvctHEY+FpDdOTrdk=; b=FnjkSGgzgBfrSuj93UKRR5L3RuWbisC8bgo+lJaOJ8WvC7iaU8hSkslPo4fCFrdlxNWO7C ORe6W4Rmx3DL+/W5H5TtZJcsGmN0dkzmnw0vdOQ7cbpkxlUn5zKMTUfl/GEF846wqMq9Bq WcoeWIjJVx0ZCnyrcxcavoWX20oQfWiiQwFFV6fQeqCLPY+IYbXLLsSiCQFnv5ghtXeq9v lAR+cyqcwm2+gDM9073Muy003LcS/573qgLjIJRHyxmq6r3mZzuiwfULJFKFZs/zgxKz+9 rUpq6NqVdbqVNE34AiM/IMK9Jh1CMYYx3LXfXmB+rVgepufEdCwblYq/cI+BAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712169189; a=rsa-sha256; cv=none; b=d/9lCIo6m+WAbCnA0nOta1khvNh0TCYfueg3SjC1bAEUBRSq8X63pDevqENqoZCscG/4ot M4pDzY9XKeJ/MlTVj/b0OY4kP2y2/oD0f1bdyDN86rC50/DNbAHyRB1ZlAQpnPk0qyxh1p pJAD/iY6GceAPeimplu8MXf35CALR/LyRc1jWJG2HqsHRPfkSIYOZuXNbsB919mhSDRIf0 WHCdcpHEguriE+Fy6o4wMn2+muMCvnl7SPTuYU0MA+AN0azA25/u5p+rSAGUcMfPlCQWf3 ixOcZD85wM/wGNOxk0j0ko6+au0Ax+JoAc/QvTRi1vP8+V1B25VhrKf2bTSmrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712169189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nvpNFkH2R4YIOF5tqpSthEpo1qfvctHEY+FpDdOTrdk=; b=yDV4JtvdTSgvrWQ9gMDm3GmfhOQ1S7FqBDikXqM9nnzKnYt8fOYIPQ/pGh2PwFrNI7IM3Z 2TsS5nQi/3tXJiVPPCmm2NI4i+tOa29yWoWjUPwL/IJDOSyov2i1K1rYzff/UKhs/8jOgn AS2PihzCO790kES+ASHvueDMqtIWeIAZCNcS24aNQxhq8PvOlTPTPLoBn627DKFN/NGzul YDdbHt8arobBkzNzX4egmuN36qCJZl2UIJy6px+lJlRjLk7Y0x+flmm1MPoX7JQwbVlyDs hicoswh5twvwT0sxCIzuqirZP0RaanZV/XRuaPq2c3oMt2BVBr330KJeEAt9LQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V8tfY424tzkjs; Wed, 3 Apr 2024 18:33:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 433IX9dE034028; Wed, 3 Apr 2024 18:33:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 433IX9N1034025; Wed, 3 Apr 2024 18:33:09 GMT (envelope-from git) Date: Wed, 3 Apr 2024 18:33:09 GMT Message-Id: <202404031833.433IX9N1034025@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 1caa5d08613f - main - efitable(8): Complete libxo transition List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1caa5d08613fbd2b79bbf4b03a0fccc182b4193f Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=1caa5d08613fbd2b79bbf4b03a0fccc182b4193f commit 1caa5d08613fbd2b79bbf4b03a0fccc182b4193f Author: Yan-Hao Wang AuthorDate: 2024-04-03 18:32:00 +0000 Commit: Li-Wen Hsu CommitDate: 2024-04-03 18:32:00 +0000 efitable(8): Complete libxo transition Reviewed by: des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41411 --- usr.sbin/efitable/efitable.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/efitable/efitable.c b/usr.sbin/efitable/efitable.c index 637188957b8b..81d8bb999c58 100644 --- a/usr.sbin/efitable/efitable.c +++ b/usr.sbin/efitable/efitable.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -208,7 +207,8 @@ efi_table_print_esrt(const void *data) xo_close_list("entries"); xo_close_container("esrt"); - xo_finish(); + if (xo_finish() < 0) + xo_err(EX_IOERR, "stdout"); } static void @@ -226,7 +226,8 @@ efi_table_print_prop(const void *data) "{:memory_protection_attribute/%#lx}\n", prop->memory_protection_attribute); xo_close_container("prop"); - xo_finish(); + if (xo_finish() < 0) + xo_err(EX_IOERR, "stdout"); } static void usage(void)