]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
sntp: pkt_output(): Improve debug output.
authorHarlan Stenn <stenn@ntp.org>
Wed, 13 Dec 2017 11:21:32 +0000 (03:21 -0800)
committerHarlan Stenn <stenn@ntp.org>
Wed, 13 Dec 2017 11:21:32 +0000 (03:21 -0800)
bk: 5a310d3cMii-k5sHphzg0bNKyxVgMg

ChangeLog
libntp/authreadkeys.c
sntp/utilities.c

index 16e294c5383632f2694ac3e97595f17a0cc27cc2..bfa645b8681e1dd45f377437a8b0f5250bb7f856 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -52,6 +52,7 @@
 * Fix bug in the override portion of the compiler hardening macro. HStenn.
 * record_raw_stats(): Log entire packet.  Log writes.  HStenn.
 * sntp: tweak key file logging.  HStenn.
+* sntp: pkt_output(): Improve debug output.  HStenn.
 
 ---
 (4.2.8p10) 2017/03/21 Released by Harlan Stenn <stenn@ntp.org>
index 536b00482c8a4ea156b2eacdaf117c1d0fb20b88..66f3cd283a2b04273f9506c1080dbd8d5d084664 100644 (file)
@@ -148,6 +148,7 @@ authreadkeys(
        u_int   nerr;
        KeyDataT *list = NULL;
        KeyDataT *next = NULL;
+
        /*
         * Open file.  Complain and return if it can't be opened.
         */
index 591c4f7ade9ca940407250db9643ea843d457e45..43cd786b9939fd8ddd0ad0734aaa8aff473edad4 100644 (file)
@@ -23,7 +23,7 @@ pkt_output (
                if (a > 0 && a % 8 == 0)
                        fprintf(output, "\n");
 
-               fprintf(output, "%d: %x \t", a, pkt[a]);
+               fprintf(output, "%3d: %02x  ", a, pkt[a]);
        }
 
        fprintf(output, "\n");