tcpdump mailing list archives

[PATCH 2/4] Fix indent space when we have padded data


From: Jamal Hadi Salim <hadi () cyberus ca>
Date: Tue, 25 Jan 2011 08:16:16 -0500

See if you can spot the difference between

    Pathdata: Flags 0x0 ID count 1
      ID#01: 3
     FULLDATA TLV (Length 10 DataLen 6 pad 2 Bytes)
       [
       0x0000:  0002 0406 080a 0000
       ]

and:
    Pathdata: Flags 0x0 ID count 1
      ID#01: 3
      FULLDATA TLV (Length 10 DataLen 6 pad 2 Bytes)
       [
       0x0000:  0002 0406 080a 0000
       ]

Signed-off-by: Jamal Hadi Salim <hadi () mojatatu com>
---
 print-forces.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/print-forces.c b/print-forces.c
index 9833892..4bb8278 100644
--- a/print-forces.c
+++ b/print-forces.c
@@ -270,7 +270,7 @@ pdatacnt_print(register const u_char * pptr, register u_int len,
                        if (vflag >= 3 && ops->v != F_TLV_PDAT) {
                                if (pad)
                                        printf
-                                           ("%s %s (Length %d DataLen %d pad %d Bytes)\n",
+                                           ("%s  %s (Length %d DataLen %d pad %d Bytes)\n",
                                             ib, ops->s, EXTRACT_16BITS(&pdtlv->length),
                                             tll, pad);
                                else
-- 
1.7.0.4

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: