Date: Tue, 19 Oct 2021 16:51:53 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 32723a3ba961 - main - sockstat: make err(3) on jail errors more verbose. Message-ID: <202110191651.19JGprM4013722@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=32723a3ba9611d7947ccf639fcdef5fa0b330571 commit 32723a3ba9611d7947ccf639fcdef5fa0b330571 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2021-10-19 16:46:41 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2021-10-19 16:49:35 +0000 sockstat: make err(3) on jail errors more verbose. --- usr.bin/sockstat/sockstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 5318a43f8585..d30f1cad0498 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -1352,7 +1352,7 @@ main(int argc, char *argv[]) case 'j': opt_j = jail_getid(optarg); if (opt_j < 0) - errx(1, "%s", jail_errmsg); + errx(1, "jail_getid: %s", jail_errmsg); break; case 'L': opt_L = 1; @@ -1403,7 +1403,7 @@ main(int argc, char *argv[]) if (opt_j > 0) { switch (jail_getvnet(opt_j)) { case -1: - errx(2, "%s", jail_errmsg); + errx(2, "jail_getvnet: %s", jail_errmsg); case JAIL_SYS_NEW: if (jail_attach(opt_j) < 0) err(3, "jail_attach()");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110191651.19JGprM4013722>