diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-24 22:27:04 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-24 22:44:27 +0000 |
| commit | 1ed2ca6b6977a6f8edea309d10bee0dbeb315d71 (patch) | |
| tree | bb2bb13193dc1e971a783cb974cdcd38c4f941e6 /util/libreboot-utils/nvmutil.c | |
| parent | 4fc4946f3c257bb5228df0a8393316b1119c6712 (diff) | |
util/libreboot-utils: rename err() to b0rk()
it behaves a bit differently than err(), so it's
not good to confuse readers
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/nvmutil.c')
| -rw-r--r-- | util/libreboot-utils/nvmutil.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c index da7d40ec..d9b91349 100644 --- a/util/libreboot-utils/nvmutil.c +++ b/util/libreboot-utils/nvmutil.c @@ -80,29 +80,29 @@ main(int argc, char *argv[]) if ((us.cmd[i].flags & O_ACCMODE) == O_RDONLY) { if (unveil(us.f.fname, "r") == -1) - err(errno, "%s: unveil r", us.f.fname); + b0rk(errno, "%s: unveil r", us.f.fname); } else { if (unveil(us.f.fname, "rwc") == -1) - err(errno, "%s: unveil rw", us.f.fname); + b0rk(errno, "%s: unveil rw", us.f.fname); } if (unveil(us.f.tname, "rwc") == -1) - err(errno, "unveil rwc: %s", us.f.tname); + b0rk(errno, "unveil rwc: %s", us.f.tname); if (unveil(NULL, NULL) == -1) - err(errno, "unveil block (rw)"); + b0rk(errno, "unveil block (rw)"); if (pledge("stdio flock rpath wpath cpath", NULL) == -1) - err(errno, "pledge (kill unveil)"); + b0rk(errno, "pledge (kill unveil)"); #elif (OpenBSD) >= 509 if (pledge("stdio flock rpath wpath cpath", NULL) == -1) - err(errno, "pledge"); + b0rk(errno, "pledge"); #endif #endif if (cmd->run == NULL) - err(errno, "Command not set"); + b0rk(errno, "Command not set"); sanitize_command_list(); @@ -121,10 +121,10 @@ main(int argc, char *argv[]) write_to_gbe_bin(); if (exit_cleanup() == -1) - err(EIO, "%s: close", f->fname); + b0rk(EIO, "%s: close", f->fname); if (f->io_err_gbe_bin) - err(EIO, "%s: error writing final file"); + b0rk(EIO, "%s: error writing final file"); free_if_null(&f->tname); |
