Changeset fa8c775


Ignore:
Timestamp:
2015-03-15T14:41:47Z (9 years ago)
Author:
dequis <dx@…>
Children:
3752019
Parents:
f3ca350
git-author:
dequis <dx@…> (08-03-15 04:28:28)
git-committer:
dequis <dx@…> (15-03-15 14:41:47)
Message:

msn: colorful debug

Location:
protocols/msn
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    rf3ca350 rfa8c775  
    269269
    270270        if (st <= 0) {
     271                fprintf(stderr, "\n\x1b[92m<<< [closed]\x1b[97m ");
    271272                return(-1);
    272273        }
    273274
    274275        if (getenv("BITLBEE_DEBUG")) {
    275                 write(2, "->C:", 4);
     276                fprintf(stderr, "\n\x1b[92m<<< ");
    276277                write(2, h->rxq + h->rxlen - st, st);
     278                fprintf(stderr, "\x1b[97m");
    277279        }
    278280
  • protocols/msn/ns.c

    rf3ca350 rfa8c775  
    5858
    5959        if (getenv("BITLBEE_DEBUG")) {
    60                 fprintf(stderr, "->NS%d:%s\n", fd, out);
     60                fprintf(stderr, "\x1b[91m>>>[NS%d] %s\n\x1b[97m", fd, out);
    6161        }
    6262
  • protocols/msn/soap.c

    rf3ca350 rfa8c775  
    209209                return;
    210210        }
     211        fprintf(stderr, "\n\x1b[90mSOAP:\n");
    211212
    212213        if (headers) {
     
    225226                xt_free_node(xt);
    226227        }
     228        fprintf(stderr, "\n\x1b[97m\n");
    227229}
    228230
Note: See TracChangeset for help on using the changeset viewer.