From: Claudio Jeker Subject: bgpd: use unsigned long long for counters To: tech@openbsd.org Date: Tue, 21 Jul 2026 08:52:51 +0200 I forgot to convert the rde_peer_stat from uint64_t to unsigned long long. uint64_t is a nightmare to printf since one needs to use %lu or %llu (or the garbage from inttypes.h). Using unsigned long long always works and the result is the same. -- :wq Claudio Index: bgpd.h =================================================================== RCS file: /cvs/src/usr.sbin/bgpd/bgpd.h,v diff -u -p -r1.544 bgpd.h --- bgpd.h 24 Jun 2026 06:01:13 -0000 1.544 +++ bgpd.h 21 Jul 2026 06:48:14 -0000 @@ -607,15 +607,15 @@ struct peer_stats { }; struct rde_peer_stats { - uint64_t prefix_rcvd_update; - uint64_t prefix_rcvd_withdraw; - uint64_t prefix_rcvd_eor; - uint64_t prefix_sent_update; - uint64_t prefix_sent_withdraw; - uint64_t prefix_sent_eor; - uint64_t rib_entry_count; - uint64_t ibufq_msg_count; - uint64_t ibufq_payload_size; + unsigned long long prefix_rcvd_update; + unsigned long long prefix_rcvd_withdraw; + unsigned long long prefix_rcvd_eor; + unsigned long long prefix_sent_update; + unsigned long long prefix_sent_withdraw; + unsigned long long prefix_sent_eor; + unsigned long long rib_entry_count; + unsigned long long ibufq_msg_count; + unsigned long long ibufq_payload_size; uint32_t prefix_cnt; uint32_t prefix_out_cnt; uint32_t pending_update;