Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make: make DEBUG0 simpler
details: https://anonhg.NetBSD.org/src/rev/a8901827d23f
branches: trunk
changeset: 359934:a8901827d23f
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Jan 31 20:49:27 2022 +0000
description:
make: make DEBUG0 simpler
All arguments to DEBUG0 are string literals, and none of them contains a
'%', which makes them safe to pass to printf directly. Any accidental
'%' would be caught by the compiler.
No functional change.
diffstat:
usr.bin/make/make.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r b8e6b3a37e13 -r a8901827d23f usr.bin/make/make.h
--- a/usr.bin/make/make.h Mon Jan 31 18:15:45 2022 +0000
+++ b/usr.bin/make/make.h Mon Jan 31 20:49:27 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.295 2022/01/30 13:21:08 christos Exp $ */
+/* $NetBSD: make.h,v 1.296 2022/01/31 20:49:27 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -642,8 +642,8 @@
debug_printf args; \
} while (false)
-#define DEBUG0(module, text) \
- DEBUG_IMPL(module, ("%s", text))
+#define DEBUG0(module, fmt) \
+ DEBUG_IMPL(module, (fmt))
#define DEBUG1(module, fmt, arg1) \
DEBUG_IMPL(module, (fmt, arg1))
#define DEBUG2(module, fmt, arg1, arg2) \
Home |
Main Index |
Thread Index |
Old Index