@@ -50,8 +50,8 @@ static void print_eth_stats(struct net_if *iface, struct net_stats_eth *data,
5050	PR ("Statistics for Ethernet interface %p [%d]\n" , iface ,
5151	       net_if_get_by_iface (iface ));
5252
53- 	PR ("Bytes received   : %u \n" , data -> bytes .received );
54- 	PR ("Bytes sent       : %u \n" , data -> bytes .sent );
53+ 	PR ("Bytes received   : %llu \n" , data -> bytes .received );
54+ 	PR ("Bytes sent       : %llu \n" , data -> bytes .sent );
5555	PR ("Packets received : %u\n" , data -> pkts .rx );
5656	PR ("Packets sent     : %u\n" , data -> pkts .tx );
5757	PR ("Bcast received   : %u\n" , data -> broadcast .rx );
@@ -315,13 +315,13 @@ static void print_tc_tx_stats(const struct shell *sh, struct net_if *iface)
315315		net_stats_t  count  =  GET_STAT (iface ,
316316					     tc .sent [i ].tx_time .count );
317317		if  (count  ==  0 ) {
318- 			PR ("[%d] %s (%u)\t%u\t\t%u \t-\n" , i ,
318+ 			PR ("[%d] %s (%u)\t%u\t\t%llu \t-\n" , i ,
319319			   priority2str (GET_STAT (iface , tc .sent [i ].priority )),
320320			   GET_STAT (iface , tc .sent [i ].priority ),
321321			   GET_STAT (iface , tc .sent [i ].pkts ),
322322			   GET_STAT (iface , tc .sent [i ].bytes ));
323323		} else  {
324- 			PR ("[%d] %s (%u)\t%u\t\t%u \t%u us%s\n" , i ,
324+ 			PR ("[%d] %s (%u)\t%u\t\t%llu \t%u us%s\n" , i ,
325325			   priority2str (GET_STAT (iface , tc .sent [i ].priority )),
326326			   GET_STAT (iface , tc .sent [i ].priority ),
327327			   GET_STAT (iface , tc .sent [i ].pkts ),
@@ -336,7 +336,7 @@ static void print_tc_tx_stats(const struct shell *sh, struct net_if *iface)
336336	PR ("TC  Priority\tSent pkts\tbytes\n" );
337337
338338	for  (i  =  0 ; i  <  NET_TC_TX_COUNT ; i ++ ) {
339- 		PR ("[%d] %s (%u)\t%u\t\t%u \n" , i ,
339+ 		PR ("[%d] %s (%u)\t%u\t\t%llu \n" , i ,
340340		   priority2str (GET_STAT (iface , tc .sent [i ].priority )),
341341		   GET_STAT (iface , tc .sent [i ].priority ),
342342		   GET_STAT (iface , tc .sent [i ].pkts ),
@@ -374,14 +374,14 @@ static void print_tc_rx_stats(const struct shell *sh, struct net_if *iface)
374374		net_stats_t  count  =  GET_STAT (iface ,
375375					     tc .recv [i ].rx_time .count );
376376		if  (count  ==  0 ) {
377- 			PR ("[%d] %s (%u)\t%u\t%u\t\t%u \t-\n" , i ,
377+ 			PR ("[%d] %s (%u)\t%u\t%u\t\t%llu \t-\n" , i ,
378378			   priority2str (GET_STAT (iface , tc .recv [i ].priority )),
379379			   GET_STAT (iface , tc .recv [i ].priority ),
380380			   GET_STAT (iface , tc .recv [i ].pkts ),
381381			   GET_STAT (iface , tc .recv [i ].dropped ),
382382			   GET_STAT (iface , tc .recv [i ].bytes ));
383383		} else  {
384- 			PR ("[%d] %s (%u)\t%u\t%u\t\t%u \t%u us%s\n" , i ,
384+ 			PR ("[%d] %s (%u)\t%u\t%u\t\t%llu \t%u us%s\n" , i ,
385385			   priority2str (GET_STAT (iface , tc .recv [i ].priority )),
386386			   GET_STAT (iface , tc .recv [i ].priority ),
387387			   GET_STAT (iface , tc .recv [i ].pkts ),
@@ -397,7 +397,7 @@ static void print_tc_rx_stats(const struct shell *sh, struct net_if *iface)
397397	PR ("TC  Priority\tRecv pkts\tDrop pkts\tbytes\n" );
398398
399399	for  (i  =  0 ; i  <  NET_TC_RX_COUNT ; i ++ ) {
400- 		PR ("[%d] %s (%u)\t%u\t%u\t\t%u \n" , i ,
400+ 		PR ("[%d] %s (%u)\t%u\t%u\t\t%llu \n" , i ,
401401		   priority2str (GET_STAT (iface , tc .recv [i ].priority )),
402402		   GET_STAT (iface , tc .recv [i ].priority ),
403403		   GET_STAT (iface , tc .recv [i ].pkts ),
@@ -533,7 +533,7 @@ static void net_shell_print_statistics(struct net_if *iface, void *user_data)
533533#endif 
534534
535535#if  defined(CONFIG_NET_STATISTICS_TCP ) &&  defined(CONFIG_NET_NATIVE_TCP )
536- 	PR ("TCP bytes recv %u \tsent\t%u \tresent\t%u\n" ,
536+ 	PR ("TCP bytes recv %llu \tsent\t%llu \tresent\t%u\n" ,
537537	   GET_STAT (iface , tcp .bytes .received ),
538538	   GET_STAT (iface , tcp .bytes .sent ),
539539	   GET_STAT (iface , tcp .resent ));
@@ -575,8 +575,8 @@ static void net_shell_print_statistics(struct net_if *iface, void *user_data)
575575	   GET_STAT (iface , pkt_filter .tx .drop ));
576576#endif  /* CONFIG_NET_STATISTICS_DNS */ 
577577
578- 	PR ("Bytes received %u \n" , GET_STAT (iface , bytes .received ));
579- 	PR ("Bytes sent     %u \n" , GET_STAT (iface , bytes .sent ));
578+ 	PR ("Bytes received %llu \n" , GET_STAT (iface , bytes .received ));
579+ 	PR ("Bytes sent     %llu \n" , GET_STAT (iface , bytes .sent ));
580580	PR ("Processing err %u\n" , GET_STAT (iface , processing_error ));
581581
582582	print_tc_tx_stats (sh , iface );
0 commit comments