mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	logger: Adjust print
This commit is contained in:
		
							parent
							
								
									7aa3fdab80
								
							
						
					
					
						commit
						35a20da512
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -162,7 +162,8 @@ struct LoggerPass : public Pass {
 | 
			
		|||
					log_cmd_error("Number of expected messages must be higher then 0 !\n");
 | 
			
		||||
				if (type=="error" && count!=1)
 | 
			
		||||
					log_cmd_error("Expected error message occurrences must be 1 !\n");
 | 
			
		||||
				log("Added regex '%s' for warnings to expected %s list.\n", pattern.c_str(), type.c_str());
 | 
			
		||||
				log("Added regex '%s' to expected %s messages list.\n",
 | 
			
		||||
					pattern.c_str(), type.c_str());
 | 
			
		||||
				try {
 | 
			
		||||
					if (type == "error")
 | 
			
		||||
						log_expect_error[pattern] = LogExpectedItem(YS_REGEX_COMPILE(pattern), count);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue