Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/tprof Print the path that we failed to open on error



details:   https://anonhg.NetBSD.org/src/rev/b3213e196d4f
branches:  trunk
changeset: 950742:b3213e196d4f
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 30 11:46:25 2021 +0000

description:
Print the path that we failed to open on error

diffstat:

 usr.sbin/tprof/tprof_analyze.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3789e67c7bbd -r b3213e196d4f usr.sbin/tprof/tprof_analyze.c
--- a/usr.sbin/tprof/tprof_analyze.c    Sat Jan 30 11:34:28 2021 +0000
+++ b/usr.sbin/tprof/tprof_analyze.c    Sat Jan 30 11:46:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tprof_analyze.c,v 1.3 2018/07/14 07:54:04 maxv Exp $   */
+/*     $NetBSD: tprof_analyze.c,v 1.4 2021/01/30 11:46:25 jmcneill Exp $       */
 
 /*
  * Copyright (c) 2010,2011,2012 YAMAMOTO Takashi,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tprof_analyze.c,v 1.3 2018/07/14 07:54:04 maxv Exp $");
+__RCSID("$NetBSD: tprof_analyze.c,v 1.4 2021/01/30 11:46:25 jmcneill Exp $");
 #endif /* not lint */
 
 #include <assert.h>
@@ -112,7 +112,7 @@
 
        fd = open(_PATH_KSYMS, O_RDONLY);
        if (fd == -1) {
-               err(EXIT_FAILURE, "open");
+               err(EXIT_FAILURE, "open " _PATH_KSYMS);
        }
        if (elf_version(EV_CURRENT) == EV_NONE) {
                goto elffail;



Home | Main Index | Thread Index | Old Index