Module Name: src
Committed By: rillig
Date: Mon Jan 31 20:49:28 UTC 2022
Modified Files:
src/usr.bin/make: make.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.295 -r1.296 src/usr.bin/make/make.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/make.h
diff -u src/usr.bin/make/make.h:1.295 src/usr.bin/make/make.h:1.296
--- src/usr.bin/make/make.h:1.295 Sun Jan 30 13:21:08 2022
+++ src/usr.bin/make/make.h Mon Jan 31 20:49:27 2022
@@ -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 @@ void debug_printf(const char *, ...) MAK
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) \