Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-01 04:44:19 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-01 04:46:39 +0300
commit552b2287db86ed6e77565672fbccff1d553f823f (patch)
tree235ad970599910d52c822bb89d23fb467f44f1bd /source/blender/blenkernel/intern/mask.c
parent8a51af7d1c98500022b1ff789284f9e0a3c038cd (diff)
Logging: Use CLOG for blenkernel
Part of D4277 by @sobakasu
Diffstat (limited to 'source/blender/blenkernel/intern/mask.c')
-rw-r--r--source/blender/blenkernel/intern/mask.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c
index f219c225d9d..4b6d8255f5f 100644
--- a/source/blender/blenkernel/intern/mask.c
+++ b/source/blender/blenkernel/intern/mask.c
@@ -32,6 +32,8 @@
#include <stddef.h>
#include <string.h>
+#include "CLG_log.h"
+
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
@@ -63,6 +65,8 @@
#include "DEG_depsgraph_build.h"
+static CLG_LogRef LOG = {"bke.mask"};
+
static struct {
ListBase splines;
struct GHash *id_hash;
@@ -1489,8 +1493,8 @@ void BKE_mask_layer_shape_from_mask(MaskLayer *masklay, MaskLayerShape *masklay_
}
}
else {
- printf("%s: vert mismatch %d != %d (frame %d)\n",
- __func__, masklay_shape->tot_vert, tot, masklay_shape->frame);
+ CLOG_ERROR(&LOG, "vert mismatch %d != %d (frame %d)",
+ masklay_shape->tot_vert, tot, masklay_shape->frame);
}
}
@@ -1511,8 +1515,8 @@ void BKE_mask_layer_shape_to_mask(MaskLayer *masklay, MaskLayerShape *masklay_sh
}
}
else {
- printf("%s: vert mismatch %d != %d (frame %d)\n",
- __func__, masklay_shape->tot_vert, tot, masklay_shape->frame);
+ CLOG_ERROR(&LOG, "vert mismatch %d != %d (frame %d)",
+ masklay_shape->tot_vert, tot, masklay_shape->frame);
}
}
@@ -1550,9 +1554,9 @@ void BKE_mask_layer_shape_to_mask_interp(MaskLayer *masklay,
}
}
else {
- printf("%s: vert mismatch %d != %d != %d (frame %d - %d)\n",
- __func__, masklay_shape_a->tot_vert, masklay_shape_b->tot_vert, tot,
- masklay_shape_a->frame, masklay_shape_b->frame);
+ CLOG_ERROR(&LOG, "vert mismatch %d != %d != %d (frame %d - %d)",
+ masklay_shape_a->tot_vert, masklay_shape_b->tot_vert, tot,
+ masklay_shape_a->frame, masklay_shape_b->frame);
}
}
@@ -1806,8 +1810,8 @@ void BKE_mask_layer_shape_changed_add(MaskLayer *masklay, int index,
masklay_shape->data = data_resized;
}
else {
- printf("%s: vert mismatch %d != %d (frame %d)\n",
- __func__, masklay_shape->tot_vert, tot, masklay_shape->frame);
+ CLOG_ERROR(&LOG, "vert mismatch %d != %d (frame %d)",
+ masklay_shape->tot_vert, tot, masklay_shape->frame);
}
}
}
@@ -1847,8 +1851,8 @@ void BKE_mask_layer_shape_changed_remove(MaskLayer *masklay, int index, int coun
masklay_shape->data = data_resized;
}
else {
- printf("%s: vert mismatch %d != %d (frame %d)\n",
- __func__, masklay_shape->tot_vert - count, tot, masklay_shape->frame);
+ CLOG_ERROR(&LOG, "vert mismatch %d != %d (frame %d)",
+ masklay_shape->tot_vert - count, tot, masklay_shape->frame);
}
}
}