json: Fixing the build

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-06-06 20:54:42 +02:00
parent 16b9a2f1b5
commit 5908f2af06
2 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ void json_import_cell_ports(Design *design, string &modname, CellInfo *cell,
log_error("JSON no connection match "
"for port_direction \'%s\' of node \'%s\' "
"in module \'%s\'\n",
port_name, cell->name.c_str(), modname.c_str());
port_name.c_str(), cell->name.c_str(), modname.c_str());
assert(wire_group_node);
@ -546,7 +546,7 @@ void json_import_cell(Design *design, string modname, JsonNode *cell_node,
param_node = cell_node->data_dict.at("parameters");
if (param_node->type != 'D')
log_error("JSON parameter list of \'%s\' is not a data dictionary\n", cell->name);
log_error("JSON parameter list of \'%s\' is not a data dictionary\n", cell->name.c_str());
//
// Loop through all parameters, adding them into the

View File

@ -24,6 +24,6 @@
#include <istream>
#include "design.h"
extern void parse_json_file(std::istream *&, std::string &, Design *);
extern void parse_json_file(std::istream *&, std::string , Design *);
#endif