mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	tools: fdtgrep: Use unsigned chars for arrays
Otherwise, values over 127 end up prefixed with ffffff. Signed-off-by: Samuel Dionne-Riel <samuel@dionne-riel.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
				
					committed by
					
						 Simon Glass
						Simon Glass
					
				
			
			
				
	
			
			
			
						parent
						
							f7691a6d73
						
					
				
				
					commit
					ac549ac82d
				
			| @@ -213,7 +213,7 @@ static void utilfdt_print_data(const char *data, int len) | ||||
| 	} else { | ||||
| 		printf(" = ["); | ||||
| 		for (i = 0; i < len; i++) | ||||
| 			printf("%02x%s", *p++, i < len - 1 ? " " : ""); | ||||
| 			printf("%02x%s", (unsigned char)*p++, i < len - 1 ? " " : ""); | ||||
| 		printf("]"); | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user