Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: do not log dinfo_t pointers in deb...



details:   https://anonhg.NetBSD.org/src/rev/b725b5e533a4
branches:  trunk
changeset: 364642:b725b5e533a4
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Apr 02 14:35:47 2022 +0000

description:
lint: do not log dinfo_t pointers in debug mode

Before the addition of debug_dinfo from today, this had been the only
way to notice changes to the global 'dcs' variable.  Since the content
of that variable is now logged, the pointer is not needed anymore.

diffstat:

 usr.bin/xlint/lint1/decl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 81a2448ef7a6 -r b725b5e533a4 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Sat Apr 02 14:28:30 2022 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Sat Apr 02 14:35:47 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.259 2022/04/02 14:28:30 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.260 2022/04/02 14:35:47 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.259 2022/04/02 14:28:30 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.260 2022/04/02 14:35:47 rillig Exp $");
 #endif
 
 #include <sys/param.h>
@@ -603,7 +603,7 @@
        dcs = di;
        di->d_ctx = sc;
        di->d_ldlsym = &di->d_dlsyms;
-       debug_step("%s(%p %s)", __func__, dcs, scl_name(sc));
+       debug_step("%s(%s)", __func__, scl_name(sc));
 }
 
 /*
@@ -614,7 +614,7 @@
 {
        dinfo_t *di;
 
-       debug_step("%s(%p %s)", __func__, dcs, scl_name(dcs->d_ctx));
+       debug_step("%s(%s)", __func__, scl_name(dcs->d_ctx));
 
        lint_assert(dcs->d_enclosing != NULL);
        di = dcs;



Home | Main Index | Thread Index | Old Index