3737#endif
3838
3939
40- void gnb_ctl_dump_status (gnb_ctl_block_t * ctl_block , uint64_t in_nodeid , uint8_t online_opt ){
40+ void gnb_ctl_dump_status (gnb_ctl_block_t * ctl_block , gnb_uuid_t in_nodeid , uint8_t online_opt ){
4141
4242 #define LINE_SIZE 1024
4343 char line_string [LINE_SIZE ];
@@ -110,7 +110,7 @@ void gnb_ctl_dump_status(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, uint8_t
110110
111111 printf ("\n====================\n" );
112112
113- printf ("node %" PRIu64 " \n" ,node -> uuid64 );
113+ printf ("node %llu \n" ,node -> uuid64 );
114114 printf ("addr4_ping_latency_usec %" PRIu64 "\n" ,node -> addr4_ping_latency_usec );
115115 printf ("tun_ipv4 %s\n" ,GNB_ADDR4STR1 (& node -> tun_addr4 ));
116116 printf ("tun_ipv6 %s\n" ,GNB_ADDR6STR1 (& node -> tun_ipv6_addr ));
@@ -171,7 +171,7 @@ void gnb_ctl_dump_status(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, uint8_t
171171 printf ("addr6_ping_latency_usec:%" PRIu64 "\n" , node -> addr6_ping_latency_usec );
172172 printf ("addr4_ping_latency_usec:%" PRIu64 "\n" , node -> addr4_ping_latency_usec );
173173
174- printf ("detect_count %d \n" , node -> detect_count );
174+ printf ("detect_count %u \n" , node -> detect_count );
175175
176176 printf ("wan_ipv4 %s\n" , GNB_SOCKADDR4STR1 (& node -> udp_sockaddr4 ));
177177 printf ("wan_ipv6 %s\n" , GNB_SOCKADDR6STR1 (& node -> udp_sockaddr6 ));
@@ -243,7 +243,7 @@ void gnb_ctl_dump_status(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, uint8_t
243243
244244 for ( j = 0 ; j < GNB_UNIFIED_FORWARDING_NODE_ARRAY_SIZE ; j ++ ) {
245245
246- wlen = snprintf (p , line_string_len - wlen , "%" PRIu64 " ," , node -> unified_forwarding_node_array [j ].uuid64 );
246+ wlen = snprintf (p , line_string_len - wlen , "%llu ," , node -> unified_forwarding_node_array [j ].uuid64 );
247247
248248 line_string_len -= wlen ;
249249
@@ -280,7 +280,7 @@ void gnb_ctl_dump_status(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, uint8_t
280280}
281281
282282
283- void gnb_ctl_dump_address_list (gnb_ctl_block_t * ctl_block , uint64_t in_nodeid , uint8_t online_opt ) {
283+ void gnb_ctl_dump_address_list (gnb_ctl_block_t * ctl_block , gnb_uuid_t in_nodeid , uint8_t online_opt ) {
284284
285285 gnb_address_t * gnb_address ;
286286
@@ -307,34 +307,32 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
307307 goto dump_all_node_address ;
308308 }
309309
310- if ( 0 != in_nodeid && in_nodeid != node -> uuid64 ) {
310+ if ( 0 != in_nodeid && in_nodeid != node -> uuid64 ) {
311311 continue ;
312312 }
313313
314314dump_all_node_address :
315315
316316 if ( node -> uuid64 == ctl_block -> core_zone -> local_uuid ) {
317- printf ( "l|%" PRIu64 " |%s\n" , node -> uuid64 , GNB_SOCKADDR6STR1 (& node -> udp_sockaddr6 ) );
318- printf ( "l|%" PRIu64 " |%s\n" , node -> uuid64 , GNB_SOCKADDR4STR1 (& node -> udp_sockaddr4 ) );
317+ printf ( "l|%llu |%s\n" , node -> uuid64 , GNB_SOCKADDR6STR1 (& node -> udp_sockaddr6 ) );
318+ printf ( "l|%llu |%s\n" , node -> uuid64 , GNB_SOCKADDR4STR1 (& node -> udp_sockaddr4 ) );
319319 continue ;
320320 }
321321
322322 if ( 0 != online_opt && !((GNB_NODE_STATUS_IPV6_PONG | GNB_NODE_STATUS_IPV4_PONG ) & node -> udp_addr_status ) ) {
323323 continue ;
324324 }
325325
326- if ( 0 != online_opt ) {
327-
328- if ( GNB_NODE_STATUS_IPV6_PONG & node -> udp_addr_status ) {
329- printf ( "w|%" PRIu64 "|%s\n" , node -> uuid64 , GNB_SOCKADDR6STR1 (& node -> udp_sockaddr6 ) );
330- }
326+ if ( GNB_NODE_STATUS_IPV6_PONG & node -> udp_addr_status ) {
327+ printf ( "w|%llu|%s\n" , node -> uuid64 , GNB_SOCKADDR6STR1 (& node -> udp_sockaddr6 ) );
328+ }
331329
332- if ( GNB_NODE_STATUS_IPV4_PONG & node -> udp_addr_status ) {
333- printf ( "w|%" PRIu64 " |%s\n" , node -> uuid64 , GNB_SOCKADDR4STR1 (& node -> udp_sockaddr4 ) );
334- }
330+ if ( GNB_NODE_STATUS_IPV4_PONG & node -> udp_addr_status ) {
331+ printf ( "w|%llu |%s\n" , node -> uuid64 , GNB_SOCKADDR4STR1 (& node -> udp_sockaddr4 ) );
332+ }
335333
334+ if ( 0 != online_opt ) {
336335 continue ;
337-
338336 }
339337
340338 available_address6_list = (gnb_address_list_t * )& node -> available_address6_list3_block ;
@@ -353,9 +351,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
353351 }
354352
355353 if ( AF_INET6 == gnb_address -> type ) {
356- printf ( "a|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
354+ printf ( "a|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
357355 } else if ( AF_INET == gnb_address -> type ) {
358- printf ( "p|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
356+ printf ( "p|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
359357 } else {
360358 continue ;
361359 }
@@ -371,9 +369,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
371369 }
372370
373371 if ( AF_INET6 == gnb_address -> type ) {
374- printf ( "a|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
372+ printf ( "a|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
375373 } else if ( AF_INET == gnb_address -> type ) {
376- printf ( "p|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
374+ printf ( "p|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
377375 } else {
378376 continue ;
379377 }
@@ -389,9 +387,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
389387 }
390388
391389 if ( AF_INET6 == gnb_address -> type ) {
392- printf ( "s|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
390+ printf ( "s|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
393391 } else if ( AF_INET == gnb_address -> type ) {
394- printf ( "s|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
392+ printf ( "s|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
395393 } else {
396394 continue ;
397395 }
@@ -407,9 +405,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
407405 }
408406
409407 if ( AF_INET6 == gnb_address -> type ) {
410- printf ( "d|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
408+ printf ( "d|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
411409 } else if ( AF_INET == gnb_address -> type ) {
412- printf ( "d|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
410+ printf ( "d|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
413411 } else {
414412 continue ;
415413 }
@@ -425,9 +423,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
425423 }
426424
427425 if ( AF_INET6 == gnb_address -> type ) {
428- printf ( "r|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
426+ printf ( "r|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
429427 } else if ( AF_INET == gnb_address -> type ) {
430- printf ( "r|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
428+ printf ( "r|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
431429 } else {
432430 continue ;
433431 }
@@ -443,9 +441,9 @@ void gnb_ctl_dump_address_list(gnb_ctl_block_t *ctl_block, uint64_t in_nodeid, u
443441 }
444442
445443 if ( AF_INET6 == gnb_address -> type ) {
446- printf ( "p|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
444+ printf ( "p|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR6STR1 (& gnb_address -> address .addr6 ), ntohs (gnb_address -> port ) );
447445 } else if ( AF_INET == gnb_address -> type ) {
448- printf ( "p|%" PRIu64 " |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
446+ printf ( "p|%llu |%s|%d\n" , node -> uuid64 , GNB_ADDR4STR1 (& gnb_address -> address .addr4 ), ntohs (gnb_address -> port ) );
449447 } else {
450448 continue ;
451449 }
0 commit comments