summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sandbox-pledge.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-10-18 11:32:03 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-10-18 11:32:03 +0000
commit2ae6dc9f02aa66b5d542918567054297b0034e9c (patch)
tree4e23839ea50465eca0d2e9d8aa6a2bc80fc05df0 /usr.bin/ssh/sandbox-pledge.c
parent76ac85c3c0818c9e092206a0e616a35f30f07885 (diff)
use the new variant log macros instead of prepending __func__ and
appending ssh_err(r) manually; ok markus@
Diffstat (limited to 'usr.bin/ssh/sandbox-pledge.c')
-rw-r--r--usr.bin/ssh/sandbox-pledge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sandbox-pledge.c b/usr.bin/ssh/sandbox-pledge.c
index 592e32ba703..9a12dbfead4 100644
--- a/usr.bin/ssh/sandbox-pledge.c
+++ b/usr.bin/ssh/sandbox-pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sandbox-pledge.c,v 1.1 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: sandbox-pledge.c,v 1.2 2020/10/18 11:32:01 djm Exp $ */
/*
* Copyright (c) 2015 Theo de Raadt <deraadt@openbsd.org>
*
@@ -42,7 +42,7 @@ ssh_sandbox_init(void)
{
struct ssh_sandbox *box;
- debug3("%s: preparing pledge sandbox", __func__);
+ debug3_f("preparing pledge sandbox");
box = xcalloc(1, sizeof(*box));
box->child_pid = 0;
@@ -53,14 +53,14 @@ void
ssh_sandbox_child(struct ssh_sandbox *box)
{
if (pledge("stdio", NULL) == -1)
- fatal("%s: pledge()", __func__);
+ fatal_f("pledge()");
}
void
ssh_sandbox_parent_finish(struct ssh_sandbox *box)
{
free(box);
- debug3("%s: finished", __func__);
+ debug3_f("finished");
}
void