From 0167af41624e8ef86b657d83ece09fe4e12fd6a2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 6 May 2009 21:30:29 -0700 Subject: Make big requests support work without modifying buffer Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith --- print_lbx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'print_lbx.c') diff --git a/print_lbx.c b/print_lbx.c index ed6ddf6..cc9d90e 100644 --- a/print_lbx.c +++ b/print_lbx.c @@ -44,7 +44,7 @@ LbxQueryVersion ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); } void @@ -78,7 +78,7 @@ LbxStartProxy ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); } void @@ -93,7 +93,7 @@ LbxStopProxy ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); } void @@ -115,7 +115,7 @@ LbxNewClient ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); PrintField(buf, 4, 4, CARD32, "new-client-id"); } @@ -152,7 +152,7 @@ LbxSwitch ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); PrintField(buf, 4, 4, CARD32, "client number"); } @@ -173,7 +173,7 @@ LbxModifySequence ( if (Verbose > 1) PrintField(SBf, 0, 4, CARD32, "sequence number"); - printfield(buf, 2, 2, CONST2(2), "request length"); + printreqlen(buf, fd, CONST2(2)); printfield(buf, 4, 4, INT32, "adjustment"); } -- cgit v1.2.1