mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	Remove .c_str() calls from log()/log_error()
There are some leftovers, but this is an easy regex-based approach that removes most of them.
This commit is contained in:
		
							parent
							
								
									c2291c10a6
								
							
						
					
					
						commit
						e0ae7b7af4
					
				
					 140 changed files with 623 additions and 623 deletions
				
			
		|  | @ -1040,7 +1040,7 @@ struct AigerBackend : public Backend { | |||
| 			std::ofstream mapf; | ||||
| 			mapf.open(map_filename.c_str(), std::ofstream::trunc); | ||||
| 			if (mapf.fail()) | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", map_filename.c_str(), strerror(errno)); | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", map_filename, strerror(errno)); | ||||
| 			writer.write_map(mapf, verbose_map, no_startoffset); | ||||
| 		} | ||||
| 
 | ||||
|  | @ -1051,7 +1051,7 @@ struct AigerBackend : public Backend { | |||
| 			PrettyJson json; | ||||
| 
 | ||||
| 			if (!json.write_to_file(yw_map_filename)) | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", yw_map_filename.c_str(), strerror(errno)); | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", yw_map_filename, strerror(errno)); | ||||
| 			writer.write_ywmap(json); | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
|  | @ -788,7 +788,7 @@ struct XAigerBackend : public Backend { | |||
| 			std::ofstream mapf; | ||||
| 			mapf.open(map_filename.c_str(), std::ofstream::trunc); | ||||
| 			if (mapf.fail()) | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", map_filename.c_str(), strerror(errno)); | ||||
| 				log_error("Can't open file `%s' for writing: %s\n", map_filename, strerror(errno)); | ||||
| 			writer.write_map(mapf); | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue