Changeset 693aca0 for protocols/msn


Ignore:
Timestamp:
2015-04-10T17:10:40Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
254a4da
Parents:
a9b1e0e
git-author:
dequis <dx@…> (08-03-15 04:28:28)
git-committer:
dequis <dx@…> (10-04-15 17:10:40)
Message:

msn: colorful debug

Location:
protocols/msn
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    ra9b1e0e r693aca0  
    275275
    276276        if (st <= 0) {
     277                fprintf(stderr, "\n\x1b[92m<<< [closed]\x1b[97m ");
    277278                return(-1);
    278279        }
    279280
    280281        if (getenv("BITLBEE_DEBUG")) {
    281                 write(2, "->C:", 4);
     282                fprintf(stderr, "\n\x1b[92m<<< ");
    282283                write(2, h->rxq + h->rxlen - st, st);
     284                fprintf(stderr, "\x1b[97m");
    283285        }
    284286
  • protocols/msn/ns.c

    ra9b1e0e r693aca0  
    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

    ra9b1e0e r693aca0  
    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.