X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fdebug.c;h=6aa2c41cb19ea1356dd2584385f571aea2c3ef26;hb=94759fce86e40abab9d6d98034e18707a87878eb;hp=35eb77c253a50515fc6b4aae02b9b4c587b53715;hpb=8768d5483a5894400ae1f70cda1beb44ed9b087c;p=exim.git diff --git a/src/src/debug.c b/src/src/debug.c index 35eb77c25..6aa2c41cb 100644 --- a/src/src/debug.c +++ b/src/src/debug.c @@ -212,11 +212,19 @@ if (indent > 0) { int i; for (i = indent >> 2; i > 0; i--) - { - Ustrcpy(debug_ptr, " " UTF8_VERT_2DASH); - debug_ptr += 6; /* 3 spaces + 3 UTF-8 octets */ - debug_prefix_length += 6; - } + DEBUG(D_noutf8) + { + Ustrcpy(debug_ptr, " !"); + debug_ptr += 4; /* 3 spaces + shriek */ + debug_prefix_length += 4; + } + else + { + Ustrcpy(debug_ptr, " " UTF8_VERT_2DASH); + debug_ptr += 6; /* 3 spaces + 3 UTF-8 octets */ + debug_prefix_length += 6; + } + Ustrncpy(debug_ptr, " ", indent &= 3); debug_ptr += indent; debug_prefix_length += indent; @@ -236,7 +244,7 @@ if (!string_vformat(debug_ptr, Ustrcpy(p, s); } -while(*debug_ptr != 0) debug_ptr++; +while(*debug_ptr) debug_ptr++; /* Output the line if it is complete. If we added any prefix data and there are internal newlines, make sure the prefix is on the continuation lines,