diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 11:58:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-21 23:47:00 -0700 |
commit | b8160915909e59fc65cc08855fb32fee6f5d89ad (patch) | |
tree | 4cb5717e10917d33b66c88a34398b55d31392eb2 /print_bigreq.c | |
parent | 5b30118f1504fb065cf0b4aca150703834881d9e (diff) | |
download | xscope-b8160915909e59fc65cc08855fb32fee6f5d89ad.tar.gz |
Convert to X.Org standard indentation & cleanup whitespace
Performed with util/modular/x-indent-all.sh, followed by manual fixups
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'print_bigreq.c')
-rw-r--r-- | print_bigreq.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/print_bigreq.c b/print_bigreq.c index 35d1816..6bf0551 100644 --- a/print_bigreq.c +++ b/print_bigreq.c @@ -27,25 +27,26 @@ #include "bigreqscope.h" void -BigreqEnable (FD fd, const unsigned char *buf) +BigreqEnable(FD fd, const unsigned char *buf) { - PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* BigreqRequest */ ; - PrintField (buf, 1, 1, BIGREQREQUEST, BIGREQREQUESTHEADER) /* BigreqSwitch */ ; - if (Verbose < 1) - return; - if (Verbose > 1) - PrintField(SBf, 0, 4, CARD32, "sequence number"); + PrintField(buf, 0, 1, REQUEST, REQUESTHEADER); /* BigreqRequest */ + PrintField(buf, 1, 1, BIGREQREQUEST, + BIGREQREQUESTHEADER); /* BigreqSwitch */ + if (Verbose < 1) + return; + if (Verbose > 1) + PrintField(SBf, 0, 4, CARD32, "sequence number"); - printreqlen(buf, fd, CONST2(2)); + printreqlen(buf, fd, CONST2(2)); } void -BigreqEnableReply (FD fd, const unsigned char *buf) +BigreqEnableReply(FD fd, const unsigned char *buf) { - PrintField(RBf, 0, 1, REPLY, REPLYHEADER) /* BigreqRequest reply */ ; - if (Verbose < 1) - return; - printfield(buf, 2, 2, CARD16, "sequence number"); - printfield(buf, 4, 4, DVALUE4(0), "reply length"); - PrintField(buf, 8, 4, CARD32, "max-request-size"); + PrintField(RBf, 0, 1, REPLY, REPLYHEADER); /* BigreqRequest reply */ + if (Verbose < 1) + return; + printfield(buf, 2, 2, CARD16, "sequence number"); + printfield(buf, 4, 4, DVALUE4(0), "reply length"); + PrintField(buf, 8, 4, CARD32, "max-request-size"); } |