summaryrefslogtreecommitdiff
path: root/print_bigreq.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 11:58:20 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-21 23:47:00 -0700
commitb8160915909e59fc65cc08855fb32fee6f5d89ad (patch)
tree4cb5717e10917d33b66c88a34398b55d31392eb2 /print_bigreq.c
parent5b30118f1504fb065cf0b4aca150703834881d9e (diff)
downloadxscope-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.c31
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");
}