mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	net: rtl8169: Fix format string
currticks() is defined as get_timer(0), which returns an unsigned long, so use %lu instead of %d to print the result. Signed-off-by: Thierry Reding <treding@nvidia.com> Patch: 276473
This commit is contained in:
		
				
					committed by
					
						 Joe Hershberger
						Joe Hershberger
					
				
			
			
				
	
			
			
			
						parent
						
							26b807c4f8
						
					
				
				
					commit
					7a36b9c1ac
				
			| @@ -501,8 +501,8 @@ static int rtl_send(struct eth_device *dev, void *packet, int length) | |||||||
|  |  | ||||||
| 	if (currticks() >= to) { | 	if (currticks() >= to) { | ||||||
| #ifdef DEBUG_RTL8169_TX | #ifdef DEBUG_RTL8169_TX | ||||||
| 		puts ("tx timeout/error\n"); | 		puts("tx timeout/error\n"); | ||||||
| 		printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); | 		printf("%s elapsed time : %lu\n", __func__, currticks()-stime); | ||||||
| #endif | #endif | ||||||
| 		ret = 0; | 		ret = 0; | ||||||
| 	} else { | 	} else { | ||||||
| @@ -604,7 +604,7 @@ static void rtl8169_hw_start(struct eth_device *dev) | |||||||
| 	RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000); | 	RTL_W16(MultiIntr, RTL_R16(MultiIntr) & 0xF000); | ||||||
|  |  | ||||||
| #ifdef DEBUG_RTL8169 | #ifdef DEBUG_RTL8169 | ||||||
| 	printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); | 	printf("%s elapsed time : %lu\n", __func__, currticks()-stime); | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -642,7 +642,7 @@ static void rtl8169_init_ring(struct eth_device *dev) | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| #ifdef DEBUG_RTL8169 | #ifdef DEBUG_RTL8169 | ||||||
| 	printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); | 	printf("%s elapsed time : %lu\n", __func__, currticks()-stime); | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -683,7 +683,7 @@ static int rtl_reset(struct eth_device *dev, bd_t *bis) | |||||||
| 	txb[5] = dev->enetaddr[5]; | 	txb[5] = dev->enetaddr[5]; | ||||||
|  |  | ||||||
| #ifdef DEBUG_RTL8169 | #ifdef DEBUG_RTL8169 | ||||||
| 	printf ("%s elapsed time : %d\n", __FUNCTION__, currticks()-stime); | 	printf("%s elapsed time : %lu\n", __func__, currticks()-stime); | ||||||
| #endif | #endif | ||||||
| 	return 0; | 	return 0; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user