]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/util: fix output format in dump_data*()
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Jun 2015 11:53:41 +0000 (13:53 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 3 Jul 2015 00:00:28 +0000 (02:00 +0200)
This changes:

  [0000] 4E 54 4C 4D 53 53 50 00   01 00 00 00 05 82 08 60   NTLMSSP. .......`
  [0010] 09 00 09 00 20 00 00 00   00 00 00 00 29 00 00 00   .... ... ....)...
  [0020] 57 4F 52 4B 47 52 4F 55   50                       WORKGROU P

into:

  [0000] 4E 54 4C 4D 53 53 50 00   01 00 00 00 05 82 08 60   NTLMSSP. .......`
  [0010] 09 00 09 00 20 00 00 00   00 00 00 00 29 00 00 00   .... ... ....)...
  [0020] 57 4F 52 4B 47 52 4F 55   50                        WORKGROU P

Note the alignment of 'WORKGROU P'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
lib/util/util.c

index 9ef712420398cc4df98b0b0acfed6888117be641..4f0e67f2e7a1ddf60610013b2492e43a4439b011 100644 (file)
@@ -530,7 +530,7 @@ void dump_data_cb(const uint8_t *buf, int len,
        if (i%16) {
                int n;
                n = 16 - (i%16);
-               cb(" ", private_data);
+               cb("  ", private_data);
                if (n>8) {
                        cb(" ", private_data);
                }