From 61101f61662a974f0fd6f054ef2a3d4c621332e9 Mon Sep 17 00:00:00 2001 From: kevinnls <57634663+kevinnls@users.noreply.github.com> Date: Mon, 20 Sep 2021 16:23:08 +0530 Subject: [PATCH] rename to `dprintf()` --- _headers/debug.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_headers/debug.h b/_headers/debug.h index cce339d..461a000 100644 --- a/_headers/debug.h +++ b/_headers/debug.h @@ -2,10 +2,11 @@ #include #include -void debug_msg(char* message, ... ){ +void dprintf(char* fmt, ... ){ va_list args; - va_start(args, message); + va_start(args, fmt); fprintf(stderr, "DEBUG: "); - vfprintf(stderr, message, args); + vfprintf(stderr, fmt, args); + frpintf(stderr, "\n"); va_end(args); }