From d7136055d92e90070b947f1662b3fa6981eecdc0 Mon Sep 17 00:00:00 2001 From: Timerix22 Date: Fri, 19 May 2023 23:45:29 +0600 Subject: [PATCH] 0199 --- cbuild | 2 +- default.config | 5 ++--- src/kprint/README.md | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cbuild b/cbuild index 991ee07..5e23ef8 160000 --- a/cbuild +++ b/cbuild @@ -1 +1 @@ -Subproject commit 991ee072b3b0e4507c80dfac873c7d41d06f0b69 +Subproject commit 5e23ef8156a85a981d60152990bde53d6e8eefe9 diff --git a/default.config b/default.config index 8116b7a..6ef5ff7 100644 --- a/default.config +++ b/default.config @@ -47,8 +47,7 @@ case "$TASK" in # -fprofile-use enables compiler to use profiling info files to optimize executable # -fprofile-prefix-path sets path where profiling info about objects are be saved # -fdata-sections -ffunction-sections -Wl,--gc-sections removes unused code - C_ARGS="-O2 -flto=auto -fuse-linker-plugin -fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects \ --fdata-sections -ffunction-sections -Wl,--gc-sections" + C_ARGS="-O2 -flto=auto -fuse-linker-plugin -fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects -fdata-sections -ffunction-sections -Wl,--gc-sections" CPP_ARGS="$C_ARGS" LINKER_ARGS="$CPP_ARGS" PRE_TASK_SCRIPT= @@ -104,7 +103,7 @@ case "$TASK" in ;; # executes $EXEC_FILE with valgrind memory checker valgrind) - VALGRIND_ARGS="-s --log-file=valgrind.log --read-var-info=yes --track-origins=yes --fullpath-after=$PROJECT/ --leak-check=full --show-leak-kinds=all" + VALGRIND_ARGS="-s --read-var-info=yes --track-origins=yes --fullpath-after=$PROJECT/ --leak-check=full --show-leak-kinds=all" TASK_SCRIPT=cbuild/default_tasks/valgrind.sh ;; # generates profiling info diff --git a/src/kprint/README.md b/src/kprint/README.md index e1ad83f..0cba7db 100644 --- a/src/kprint/README.md +++ b/src/kprint/README.md @@ -29,7 +29,7 @@ I don't really like printf function (and its variants), so i made safer and more ## how to use it: + **format construction:** ``` - kp_fmt fmt= kp_fgColor | kp_bgColor | kprint_fdataFmt | flags | ktid; + kp_fmt fmt= kp_fgColor | kp_bgColor | kp_dataFmt | flags | ktid; ``` [more about `kp_fmt`](kp_fmt.md) + fgColor and bgColor can be set to change console output color