summaryrefslogtreecommitdiff
path: root/prtype.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-07 17:36:42 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-07 17:36:42 -0800
commitfe6483c2305ccd2fde0f433a42af2715def33fff (patch)
treea15b8840dcabf1e82c1d6ec943040d094adfbcfe /prtype.c
parent67ffde62e837f4b466141366c238ff134cf36edd (diff)
PrintField: Don't over-indent when verbose < 3
When not printing out the contents of embedded structures, PrintField was still increasing the indent level, but returning before returning it to the prior level, leaving the later fields over-indented. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'prtype.c')
-rw-r--r--prtype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prtype.c b/prtype.c
index 130754f..308cbab 100644
--- a/prtype.c
+++ b/prtype.c
@@ -743,10 +743,10 @@ PrintField(const unsigned char *buf,
break;
case RECORD:
- ModifyIndentLevel(1);
fprintf(stdout, "\n");
if (Verbose < 3)
return;
+ ModifyIndentLevel(1);
(*TD[FieldType].PrintProc) (&buf[start]);
ModifyIndentLevel(-1);
break;