summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-06-01 07:05:48 +0100
committerLeah Rowe <leah@libreboot.org>2023-06-01 07:05:48 +0100
commit293ca0fcbb5b3cbf60c21f1a44241f7c11271513 (patch)
treec23c9ebdf7aa10f2c646fbee02a635655bf8a575 /util
parenta1df8fd154718deee3bb8d17b365b03847cd4e73 (diff)
util/nvmutil pledge,unveil: use correct err string
Diffstat (limited to 'util')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 9d2c860c..c0873a25 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -376,7 +376,7 @@ xpledge(const char *promises, const char *execpromises)
(void)promises; (void)execpromises;
#ifdef __OpenBSD__
if (pledge(promises, execpromises) == -1)
- err(ERR(), NULL);
+ err(ERR(), "pledge");
#endif
}
@@ -386,7 +386,7 @@ xunveil(const char *path, const char *permissions)
(void)path; (void)permissions;
#ifdef __OpenBSD__
if (unveil(path, permissions) == -1)
- err(ERR(), NULL);
+ err(ERR(), "unveil");
#endif
}