mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	efi_loader: merge adjacent sprintf()
In the implementation of the device path to text protocol join adjacent sprintf() statements. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
		
							parent
							
								
									ce54fdc492
								
							
						
					
					
						commit
						f005f573a8
					
				@ -79,9 +79,8 @@ static char *dp_acpi(char *s, struct efi_device_path *dp)
 | 
			
		||||
		struct efi_device_path_acpi_path *adp =
 | 
			
		||||
			(struct efi_device_path_acpi_path *)dp;
 | 
			
		||||
 | 
			
		||||
		s += sprintf(s, "Acpi(PNP%04X", EISA_PNP_NUM(adp->hid));
 | 
			
		||||
		s += sprintf(s, ",%d", adp->uid);
 | 
			
		||||
		s += sprintf(s, ")");
 | 
			
		||||
		s += sprintf(s, "Acpi(PNP%04X,%d)", EISA_PNP_NUM(adp->hid),
 | 
			
		||||
			     adp->uid);
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	default:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user