diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-01 04:44:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-01 04:46:39 +0300 |
commit | 552b2287db86ed6e77565672fbccff1d553f823f (patch) | |
tree | 235ad970599910d52c822bb89d23fb467f44f1bd /source/blender/blenkernel/intern/idprop.c | |
parent | 8a51af7d1c98500022b1ff789284f9e0a3c038cd (diff) |
Logging: Use CLOG for blenkernel
Part of D4277 by @sobakasu
Diffstat (limited to 'source/blender/blenkernel/intern/idprop.c')
-rw-r--r-- | source/blender/blenkernel/intern/idprop.c | 6 |
1 files changed, 5 insertions, 1 deletions
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: |