Browse code

Cast and print another suseconds_t as long

Missed in 31b5c0e
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <87375t6qas.fsf@ritchie.wxcvbn.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15749.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>

Jeremie Courreges-Anglas authored on 2017/11/05 18:03:26
Showing 1 changed files
... ...
@@ -649,7 +649,7 @@ check_timeout_random_component_dowork(struct context *c)
649 649
     c->c2.timeout_random_component.tv_usec = (time_t) get_random() & 0x0003FFFF;
650 650
     c->c2.timeout_random_component.tv_sec = 0;
651 651
 
652
-    dmsg(D_INTERVAL, "RANDOM USEC=%d", (int) c->c2.timeout_random_component.tv_usec);
652
+    dmsg(D_INTERVAL, "RANDOM USEC=%ld", (long) c->c2.timeout_random_component.tv_usec);
653 653
 }
654 654
 
655 655
 static inline void