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/nla.c | |
parent | 8a51af7d1c98500022b1ff789284f9e0a3c038cd (diff) |
Logging: Use CLOG for blenkernel
Part of D4277 by @sobakasu
Diffstat (limited to 'source/blender/blenkernel/intern/nla.c')
-rw-r--r-- | source/blender/blenkernel/intern/nla.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/nla.c b/source/blender/blenkernel/intern/nla.c index bbbb7e10e3f..deed6cabf00 100644 --- a/source/blender/blenkernel/intern/nla.c +++ b/source/blender/blenkernel/intern/nla.c @@ -37,6 +37,8 @@ #include <math.h> #include <float.h> +#include "CLG_log.h" + #include "MEM_guardedalloc.h" #include "BLI_utildefines.h" @@ -66,7 +68,7 @@ #include "RNA_access.h" #include "nla_private.h" - +static CLG_LogRef LOG = {"bke.nla"}; /* *************************************************** */ /* Data Management */ @@ -1712,7 +1714,7 @@ bool BKE_nla_action_stash(AnimData *adt) /* sanity check */ if (ELEM(NULL, adt, adt->action)) { - printf("%s: Invalid argument - %p %p\n", __func__, adt, adt->action); + CLOG_ERROR(&LOG, "Invalid argument - %p %p", adt, adt->action); return false; } @@ -1790,7 +1792,7 @@ void BKE_nla_action_pushdown(AnimData *adt) */ /* TODO: what about modifiers? */ if (action_has_motion(adt->action) == 0) { - printf("BKE_nla_action_pushdown(): action has no data\n"); + CLOG_ERROR(&LOG, "action has no data"); return; } |