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/library_remap.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/library_remap.c') diff --git a/source/blender/blenkernel/intern/library_remap.c b/source/blender/blenkernel/intern/library_remap.c index 28d949a4f91..420bf16d001 100644 --- a/source/blender/blenkernel/intern/library_remap.c +++ b/source/blender/blenkernel/intern/library_remap.c @@ -31,6 +31,8 @@ #include #include +#include "CLG_log.h" + #include "MEM_guardedalloc.h" /* all types are needed here, in order to do memory operations */ @@ -119,6 +121,8 @@ #include "BPY_extern.h" #endif +static CLG_LogRef LOG = {"bke.library_remap"}; + static BKE_library_free_window_manager_cb free_windowmanager_cb = NULL; void BKE_library_callback_free_window_manager_set(BKE_library_free_window_manager_cb func) @@ -496,9 +500,9 @@ void BKE_libblock_remap_locked( } if (old_id->us - skipped_refcounted < 0) { - printf("Error in remapping process from '%s' (%p) to '%s' (%p): " - "wrong user count in old ID after process (summing up to %d)\n", - old_id->name, old_id, new_id ? new_id->name : "", new_id, old_id->us - skipped_refcounted); + CLOG_ERROR(&LOG, "Error in remapping process from '%s' (%p) to '%s' (%p): " + "wrong user count in old ID after process (summing up to %d)", + old_id->name, old_id, new_id ? new_id->name : "", new_id, old_id->us - skipped_refcounted); BLI_assert(0); } -- cgit v1.2.3