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 use __func__
details: https://anonhg.NetBSD.org/src/rev/b72c5ba65ead
branches: trunk
changeset: 960692:b72c5ba65ead
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 26 20:51:34 2021 +0000
description:
use __func__
diffstat:
usr.bin/xlint/lint1/decl.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 42fd23505316 -r b72c5ba65ead usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Fri Mar 26 20:31:07 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Fri Mar 26 20:51:34 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.161 2021/03/26 20:31:07 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.162 2021/03/26 20:51:34 christos 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.161 2021/03/26 20:31:07 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.162 2021/03/26 20:51:34 christos Exp $");
#endif
#include <sys/param.h>
@@ -599,8 +599,7 @@
di->d_ctx = sc;
di->d_ldlsym = &di->d_dlsyms;
if (dflag)
- (void)printf("begin_declaration_level(%p %d)\n",
- dcs, (int)sc);
+ (void)printf("%s(%p %d)\n", __func__, dcs, (int)sc);
}
@@ -613,8 +612,7 @@
dinfo_t *di;
if (dflag)
- (void)printf("end_declaration_level(%p %d)\n",
- dcs, (int)dcs->d_ctx);
+ (void)printf("%s(%p %d)\n", __func__, dcs, (int)dcs->d_ctx);
lint_assert(dcs->d_next != NULL);
di = dcs;
Home |
Main Index |
Thread Index |
Old Index