Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so improve error message



details:   https://anonhg.NetBSD.org/src/rev/4984f0ebcfdd
branches:  trunk
changeset: 459965:4984f0ebcfdd
user:      tnn <tnn%NetBSD.org@localhost>
date:      Thu Oct 03 10:34:30 2019 +0000

description:
improve error message

diffstat:

 libexec/ld.elf_so/rtld.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r a7de1a05dd08 -r 4984f0ebcfdd libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c  Thu Oct 03 06:27:09 2019 +0000
+++ b/libexec/ld.elf_so/rtld.c  Thu Oct 03 10:34:30 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtld.c,v 1.198 2019/09/15 13:40:46 kamil Exp $  */
+/*     $NetBSD: rtld.c,v 1.199 2019/10/03 10:34:30 tnn Exp $    */
 
 /*
  * Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.198 2019/09/15 13:40:46 kamil Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.199 2019/10/03 10:34:30 tnn Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -1674,7 +1674,7 @@
                if (cur == (self | RTLD_EXCLUSIVE_MASK)) {
                        if (_rtld_mutex_may_recurse)
                                return;
-                       _rtld_error("dead lock detected");
+                       _rtld_error("%s: dead lock detected", __FUNCTION__);
                        _rtld_die();
                }
                waiter = atomic_swap_uint(&_rtld_waiter_shared, self);
@@ -1738,7 +1738,7 @@
                membar_sync();
                cur = _rtld_mutex;
                if (cur == locked_value) {
-                       _rtld_error("dead lock detected");
+                       _rtld_error("%s: dead lock detected", __FUNCTION__);
                        _rtld_die();
                }
                if (cur)



Home | Main Index | Thread Index | Old Index