Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-03-31 04:59:17 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-31 04:59:17 +0400
commit5b88712ff932fcbcd0bb0fb257e8e9c2e247a82a (patch)
treeca0f15ee78fee5aef80ebf5c0f9f46529b65a9e2 /source/blender/makesdna/intern
parentebb229110e4af5d2df5613b6345da2f602b90092 (diff)
move debug flag into its own global var (G.debug), split up debug options.
--debug --debug-ffmpeg --debug-python --debug-events --debug-wm This makes debug output easier to read - event debug prints would flood output too much before. For convenience: --debug-all turns all debug flags on (works as --debug did before). also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/dna_genfile.c2
-rw-r--r--source/blender/makesdna/intern/makesdna.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c
index 5e4c244dbc2..ef7a2746d37 100644
--- a/source/blender/makesdna/intern/dna_genfile.c
+++ b/source/blender/makesdna/intern/dna_genfile.c
@@ -783,7 +783,7 @@ static void cast_pointer(int curlen, int oldlen, const char *name, char *curdata
}
else {
/* for debug */
- printf("errpr: illegal pointersize! \n");
+ printf("errpr: illegal pointersize!\n");
}
olddata+= oldlen;
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index bd04698107c..ae6432dcbe4 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -312,10 +312,10 @@ static int add_name(const char *str)
j++; /* j beyond closing brace ? */
while ((str[j] != 0) && (str[j] != ')' )) {
- if (debugSDNA > 3) printf("seen %c ( %d) \n", str[j], str[j]);
+ if (debugSDNA > 3) printf("seen %c ( %d)\n", str[j], str[j]);
j++;
}
- if (debugSDNA > 3) printf("seen %c ( %d) \n"
+ if (debugSDNA > 3) printf("seen %c ( %d)\n"
"special after offset%d\n",
str[j], str[j], j);
@@ -848,7 +848,7 @@ static int calculate_structlens(int firststruct)
printf("ERROR: still %d structs unknown\n", unknown);
if (debugSDNA) {
- printf("*** Known structs : \n");
+ printf("*** Known structs :\n");
for (a=0; a<nr_structs; a++) {
structpoin= structs[a];
@@ -862,7 +862,7 @@ static int calculate_structlens(int firststruct)
}
- printf("*** Unknown structs : \n");
+ printf("*** Unknown structs :\n");
for (a=0; a<nr_structs; a++) {
structpoin= structs[a];
@@ -995,7 +995,7 @@ static int make_structDNA(char *baseDirectory, FILE *file)
printf("nr_names %d nr_types %d nr_structs %d\n", nr_names, nr_types, nr_structs);
for (a=0; a<nr_names; a++) {
- printf(" %s \n", names[a]);
+ printf(" %s\n", names[a]);
}
printf("\n");