[Bf-blender-cvs] [98633a92131] undo-experiments: undoexp: Silent/remove some debug prints.
Bastien Montagne
noreply at git.blender.org
Thu Jan 9 16:55:46 CET 2020
Commit: 98633a921314e4737942669eb378d1e2f0856937
Author: Bastien Montagne
Date: Thu Jan 9 16:55:27 2020 +0100
Branches: undo-experiments
https://developer.blender.org/rB98633a921314e4737942669eb378d1e2f0856937
undoexp: Silent/remove some debug prints.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 5444c4ed04e..50ff35c862e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -229,7 +229,7 @@
#define USE_GHASH_RESTORE_POINTER
/* Define this to have verbose debug prints. */
-#define USE_DEBUG_PRINT
+//#define USE_DEBUG_PRINT
#ifdef USE_DEBUG_PRINT
# define DEBUG_PRINTF(...) printf(__VA_ARGS__)
@@ -1262,9 +1262,6 @@ static int fd_read_from_memfile(FileData *filedata,
if (r_is_memchunck_identical != NULL) {
*r_is_memchunck_identical = chunk->is_identical;
}
- if (chunk->is_identical) {
- // DEBUG_PRINTF("%s: found an identical memfile chunk...\n", __func__);
- }
} while (totread < size);
return totread;
@@ -9421,11 +9418,7 @@ static BHead *read_libblock(FileData *fd,
/* read libblock */
fd->are_memchunks_identical = true;
- DEBUG_PRINTF("%s: Reading a struct...\n", __func__);
id = read_struct(fd, bhead, "lib block");
- DEBUG_PRINTF("\tfor ID %s: are_memchunks_identical: %d\n",
- id ? id->name : "NONE",
- fd->are_memchunks_identical);
BHead *id_bhead = bhead;
@@ -9442,10 +9435,6 @@ static BHead *read_libblock(FileData *fd,
* and eval, not actual file reading. */
bhead = read_data_into_oldnewmap(fd, id_bhead, allocname);
- DEBUG_PRINTF("\tfor data of ID %s: are_memchunks_identical: %d\n",
- id->name,
- fd->are_memchunks_identical);
-
if (fd->are_memchunks_identical && !ELEM(idcode, ID_WM, ID_SCR, ID_WS)) {
BLI_assert(fd->memfile);
More information about the Bf-blender-cvs
mailing list