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/ipo.c | |
parent | 8a51af7d1c98500022b1ff789284f9e0a3c038cd (diff) |
Logging: Use CLOG for blenkernel
Part of D4277 by @sobakasu
Diffstat (limited to 'source/blender/blenkernel/intern/ipo.c')
-rw-r--r-- | source/blender/blenkernel/intern/ipo.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c index aae208dd967..0f6d29e1c5f 100644 --- a/source/blender/blenkernel/intern/ipo.c +++ b/source/blender/blenkernel/intern/ipo.c @@ -77,12 +77,16 @@ #include "BKE_nla.h" #include "BKE_sequencer.h" +#include "CLG_log.h" + #include "MEM_guardedalloc.h" #ifdef WIN32 # include "BLI_math_base.h" /* M_PI */ #endif +static CLG_LogRef LOG = {"bke.ipo"}; + /* *************************************************** */ /* Old-Data Freeing Tools */ @@ -292,7 +296,7 @@ static const char *pchan_adrcodes_to_paths(int adrcode, int *array_index) } /* for debugging only */ - printf("ERROR: unmatched PoseChannel setting (code %d)\n", adrcode); + CLOG_ERROR(&LOG, "unmatched PoseChannel setting (code %d)", adrcode); return NULL; } @@ -893,7 +897,7 @@ static char *get_rna_access(ID *id, int blocktype, int adrcode, char actname[], /* TODO... add other blocktypes... */ default: - printf("IPO2ANIMATO WARNING: No path for blocktype %d, adrcode %d yet\n", blocktype, adrcode); + CLOG_WARN(&LOG, "No path for blocktype %d, adrcode %d yet", blocktype, adrcode); break; } @@ -1519,7 +1523,7 @@ static void ipo_to_animdata(Main *bmain, ID *id, Ipo *ipo, char actname[], char if (ELEM(NULL, id, ipo)) return; if (adt == NULL) { - printf("ERROR ipo_to_animdata(): adt invalid\n"); + CLOG_ERROR(&LOG, "adt invalid"); return; } @@ -1686,13 +1690,13 @@ void do_versions_ipos_to_animato(Main *bmain) ID *id; if (bmain == NULL) { - printf("Argh! Main is NULL in do_versions_ipos_to_animato()\n"); + CLOG_ERROR(&LOG, "Argh! Main is NULL"); return; } /* only convert if version is right */ if (bmain->versionfile >= 250) { - printf("WARNING: Animation data too new to convert (Version %d)\n", bmain->versionfile); + CLOG_WARN(&LOG, "Animation data too new to convert (Version %d)", bmain->versionfile); return; } else if (G.debug & G_DEBUG) |