[Bf-blender-cvs] [c4c0b6dac27] soc-2020-info-editor: Fix log printing error

Mateusz Grzeliński noreply at git.blender.org
Thu Jul 2 15:23:24 CEST 2020


Commit: c4c0b6dac2734adc2b73e104ad8fcbd90f17246e
Author: Mateusz Grzeliński
Date:   Thu Jul 2 15:17:50 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBc4c0b6dac2734adc2b73e104ad8fcbd90f17246e

Fix log printing error

===================================================================

M	source/blender/blenfont/intern/blf_font.c

===================================================================

diff --git a/source/blender/blenfont/intern/blf_font.c b/source/blender/blenfont/intern/blf_font.c
index 778fd50fb9e..c39234fcb5c 100644
--- a/source/blender/blenfont/intern/blf_font.c
+++ b/source/blender/blenfont/intern/blf_font.c
@@ -971,7 +971,7 @@ static void blf_font_wrap_apply(FontBLF *font,
     size_t start, last[2];
   } wrap = {font->wrap_width != -1 ? font->wrap_width : INT_MAX, 0, {0, 0}};
 
-  CLOG_INFO(BLENFONT_LOG, 2, "wrapping (%d, %d) `%s`:", len, strlen(str), str);
+  CLOG_INFO(BLENFONT_LOG, 2, "wrapping (%zu, %zu) `%s`:", len, strlen(str), str);
   while ((i < len) && str[i]) {
 
     /* wrap vars */
@@ -1021,7 +1021,7 @@ static void blf_font_wrap_apply(FontBLF *font,
     if (UNLIKELY(do_draw)) {
       CLOG_INFO(BLENFONT_LOG,
                 2,
-                "(%03d..%03d)  `%.*s`",
+                "(%03zu..%03zu)  `%lu %s`",
                 wrap.start,
                 wrap.last[0],
                 (wrap.last[0] - wrap.start) - 1,



More information about the Bf-blender-cvs mailing list