mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	keep_hierarchy.cc: use strictly correct syntax for printf of uint64_t values
Removes two warnings from the compile, at least on amd64 arch
This commit is contained in:
		
							parent
							
								
									7e3990b681
								
							
						
					
					
						commit
						27be9a6b77
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -17,6 +17,7 @@
 | 
			
		|||
 *
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include <inttypes.h>
 | 
			
		||||
#include "kernel/yosys.h"
 | 
			
		||||
#include "kernel/cost.h"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -66,7 +67,7 @@ struct ThresholdHierarchyKeeping {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		if (size > threshold) {
 | 
			
		||||
			log("Keeping %s (estimated size above threshold: %llu > %llu).\n", log_id(module), size, threshold);
 | 
			
		||||
			log("Keeping %s (estimated size above threshold: %" PRIu64 " > %" PRIu64 ").\n", log_id(module), size, threshold);
 | 
			
		||||
			module->set_bool_attribute(ID::keep_hierarchy);
 | 
			
		||||
			size = 0;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue