[Bf-blender-cvs] [3ac73c6b0d0] soc-2020-info-editor: Cleanup: replace printf with CLOG
Mateusz GrzeliÅski
noreply at git.blender.org
Fri Jun 5 15:03:18 CEST 2020
Commit: 3ac73c6b0d04602549cb793cfbf930376676d02a
Author: Mateusz Grzeliński
Date: Fri Jun 5 10:34:00 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB3ac73c6b0d04602549cb793cfbf930376676d02a
Cleanup: replace printf with CLOG
===================================================================
M source/blender/blenkernel/intern/undo_system.c
M source/blender/editors/undo/ed_undo.c
===================================================================
diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c
index e155dedeef0..86fd59bc3c3 100644
--- a/source/blender/blenkernel/intern/undo_system.c
+++ b/source/blender/blenkernel/intern/undo_system.c
@@ -877,11 +877,11 @@ static void UNUSED_FUNCTION(BKE_undosys_foreach_ID_ref(UndoStack *ustack,
void BKE_undosys_print(UndoStack *ustack)
{
- printf("Undo %d Steps (*: active, #=applied, M=memfile-active, S=skip)\n",
+ CLOG_INFO(&LOG, 1, "Undo %d Steps (*: active, #=applied, M=memfile-active, S=skip)",
BLI_listbase_count(&ustack->steps));
int index = 0;
LISTBASE_FOREACH (UndoStep *, us, &ustack->steps) {
- printf("[%c%c%c%c] %3d {%p} type='%s', name='%s'\n",
+ CLOG_INFO(&LOG, 1, "[%c%c%c%c] %3d {%p} type='%s', name='%s'",
(us == ustack->step_active) ? '*' : ' ',
us->is_applied ? '#' : ' ',
(us == ustack->step_active_memfile) ? 'M' : ' ',
diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c
index 6633e1c427c..77bece0f2a9 100644
--- a/source/blender/editors/undo/ed_undo.c
+++ b/source/blender/editors/undo/ed_undo.c
@@ -584,7 +584,7 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op)
int retval;
if (G.debug & G_DEBUG) {
- printf("redo_cb: operator redo %s\n", op->type->name);
+ CLOG_INFO(&LOG, 1, "redo_cb: operator redo %s\n", op->type->name);
}
WM_operator_free_all_after(wm, op);
@@ -604,7 +604,8 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op)
retval = WM_operator_repeat(C, op);
if ((retval & OPERATOR_FINISHED) == 0) {
if (G.debug & G_DEBUG) {
- printf("redo_cb: operator redo failed: %s, return %d\n", op->type->name, retval);
+ CLOG_INFO(
+ &LOG, 1, "redo_cb: operator redo failed: %s, return %d\n", op->type->name, retval);
}
ED_undo_redo(C);
}
@@ -614,7 +615,8 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op)
}
else {
if (G.debug & G_DEBUG) {
- printf("redo_cb: WM_operator_repeat_check returned false %s\n", op->type->name);
+ CLOG_INFO(
+ &LOG, 1, "redo_cb: WM_operator_repeat_check returned false %s\n", op->type->name);
}
}
More information about the Bf-blender-cvs
mailing list