From 552b2287db86ed6e77565672fbccff1d553f823f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Feb 2019 12:44:19 +1100 Subject: Logging: Use CLOG for blenkernel Part of D4277 by @sobakasu --- source/blender/blenkernel/intern/idprop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/idprop.c') diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c index 4d6c43c34e0..eacc30aa768 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -40,6 +40,8 @@ #include "BKE_idprop.h" #include "BKE_library.h" +#include "CLG_log.h" + #include "MEM_guardedalloc.h" #include "BLI_strict_flags.h" @@ -52,6 +54,8 @@ */ #define IDP_ARRAY_REALLOC_LIMIT 200 +static CLG_LogRef LOG = {"bke.idprop"}; + /*local size table.*/ static size_t idp_size_table[] = { 1, /*strings*/ @@ -986,7 +990,7 @@ IDProperty *IDP_New(const char type, const IDPropertyTemplate *val, const char * prop->len = prop->totallen = val->array.len; break; } - printf("%s: bad array type.\n", __func__); + CLOG_ERROR(&LOG, "bad array type."); return NULL; } case IDP_STRING: -- cgit v1.2.3