From 38a04e405e5e0e0ee628b3b5f80a95570492a4ed Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Fri, 7 Sep 2018 11:14:37 -0400 Subject: [PATCH] Fix example of DUK_USE_DEBUG_WRITE in duk_config.h - Format string now consistent with parameters and sample configure.py argument - add a missing backslash --- HowtoDebugPrints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HowtoDebugPrints.md b/HowtoDebugPrints.md index 6273cbc..ad1a8c6 100644 --- a/HowtoDebugPrints.md +++ b/HowtoDebugPrints.md @@ -21,8 +21,8 @@ Example of `DUK_USE_DEBUG_WRITE` in manually edited `duk_config.h`: ```c #define DUK_USE_DEBUG_WRITE(level,file,line,func,msg) do { \ - fprintf(stderr, "D%ld %s:%d (%s): %s\n", \ - (long) (level), (file), (long) (line), (func), (msg)); + fprintf(stderr, "D%ld %s:%ld (%s): %s\n", \ + (long) (level), (file), (long) (line), (func), (msg)); \ } while (0) ```