Skip to content

Commit 24b87e4

Browse files
committed
say what we can't open
1 parent c2c4b9a commit 24b87e4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sbin/efi/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: main.c,v 1.6 2026/01/06 10:54:41 nia Exp $ */
1+
/* $NetBSD: main.c,v 1.7 2026/07/04 16:13:26 christos Exp $ */
22

33
/*
44
* Redistribution and use in source and binary forms, with or without
@@ -25,7 +25,7 @@
2525

2626
#include <sys/cdefs.h>
2727
#ifndef lint
28-
__RCSID("$NetBSD: main.c,v 1.6 2026/01/06 10:54:41 nia Exp $");
28+
__RCSID("$NetBSD: main.c,v 1.7 2026/07/04 16:13:26 christos Exp $");
2929
#endif /* not lint */
3030

3131
#include <sys/efiio.h>
@@ -548,7 +548,7 @@ main(int argc, char **argv)
548548

549549
efi_fd = open(_PATH_EFI, O_RDONLY);
550550
if (efi_fd == -1)
551-
err(EXIT_FAILURE, "open");
551+
err(EXIT_FAILURE, "Cannot open `%s'", _PATH_EFI);
552552

553553
switch (action) {
554554
case act_del_bootorder_dups: return del_bootorder_dups(efi_fd, opt.target);

0 commit comments

Comments
 (0)